diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-09-18 21:25:48 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-09-18 23:48:51 +0900 |
commit | 7be1d273429765907af0abad182666d77eb557e4 (patch) | |
tree | 1dcb0d68d8d65e4a8f847a6790eed5c7c0854401 /compiler/compiler_test.go | |
parent | Generate constant values representing mode IDs, mode names, kind IDs, and kin... (diff) | |
download | tre-7be1d273429765907af0abad182666d77eb557e4.tar.gz tre-7be1d273429765907af0abad182666d77eb557e4.tar.xz |
Add name field to the lexical specification
Diffstat (limited to 'compiler/compiler_test.go')
-rw-r--r-- | compiler/compiler_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/compiler_test.go b/compiler/compiler_test.go index c76bb24..456920f 100644 --- a/compiler/compiler_test.go +++ b/compiler/compiler_test.go @@ -18,6 +18,7 @@ func TestCompile(t *testing.T) { Caption: "allow duplicates names between fragments and non-fragments", Spec: ` { + "name": "test", "entries": [ { "kind": "a2z", @@ -36,6 +37,7 @@ func TestCompile(t *testing.T) { Caption: "don't allow duplicates names in non-fragments", Spec: ` { + "name": "test", "entries": [ { "kind": "a2z", @@ -54,6 +56,7 @@ func TestCompile(t *testing.T) { Caption: "don't allow duplicates names in fragments", Spec: ` { + "name": "test", "entries": [ { "kind": "a2z", |