aboutsummaryrefslogtreecommitdiff
path: root/spec/spec_test.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-09-24 01:17:27 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-09-24 13:40:59 +0900
commita8ed73f786fa9dd28965e4bf915022eb4a90bbba (patch)
treeb760670fb2eda9a06acafbab3e7df56e4f4d7bf4 /spec/spec_test.go
parentRemove --debug option from compile command (diff)
downloadtre-a8ed73f786fa9dd28965e4bf915022eb4a90bbba.tar.gz
tre-a8ed73f786fa9dd28965e4bf915022eb4a90bbba.tar.xz
Disallow upper cases in an identifier
Diffstat (limited to '')
-rw-r--r--spec/spec_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spec_test.go b/spec/spec_test.go
index 54d7b7d..e0e920e 100644
--- a/spec/spec_test.go
+++ b/spec/spec_test.go
@@ -22,6 +22,14 @@ var idTests = []struct {
id: "f_o_o",
},
{
+ id: "Foo",
+ invalid: true,
+ },
+ {
+ id: "foo_Bar",
+ invalid: true,
+ },
+ {
id: "2foo",
invalid: true,
},