Skip to content

Commit

Permalink
add hyphen field to the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nadako committed May 16, 2020
1 parent 8888d15 commit 9aeaeba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/unit/src/unit/issues/Issue7722.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,32 @@ private typedef Schema = {
final "$ref":String;
var ?"enum":Int;
var "default":{"$id":Int, "class":String};
var "aria-details":String;
}
class Issue7722 extends unit.Test {
function test() {
var a:Schema = {
"$ref": "hi",
"enum": 42,
"default": {"$id": 10, "class": "bye"}
"default": {"$id": 10, "class": "bye"},
"aria-details": "yep",
};
var b = {
"$ref": "hi",
"enum": 42,
"default": {"$id": 10, "class": "bye"}
"default": {"$id": 10, "class": "bye"},
"aria-details": "yep",
};
eq("hi", a."$ref");
eq(42, a."enum");
eq(10, a."default"."$id");
eq("bye", a."default"."class");
eq("yep", a."aria-details");
eq("hi", b."$ref");
eq(42, b."enum");
eq(10, b."default"."$id");
eq("bye", b."default"."class");
eq("yep", b."aria-details");
}
}

0 comments on commit 9aeaeba

Please sign in to comment.