Browse Source

more tests (Issue #17)

Vladislav Folts 11 years ago
parent
commit
8882ebb3dc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/test_unit.js

+ 2 - 1
test/test_unit.js

@@ -327,7 +327,8 @@ var testSuite = {
 "POINTER declaration": testWithGrammar(
 "POINTER declaration": testWithGrammar(
     Grammar.typeDeclaration,
     Grammar.typeDeclaration,
     pass("T = POINTER TO RECORD END",
     pass("T = POINTER TO RECORD END",
-         "T = RECORD p: POINTER TO T END"),
+         "T = RECORD p: POINTER TO T END",
+         "T = POINTER TO RECORD p: T END"),
     fail(["T = POINTER TO INTEGER",
     fail(["T = POINTER TO INTEGER",
           "RECORD is expected as a POINTER base type, got 'INTEGER'"],
           "RECORD is expected as a POINTER base type, got 'INTEGER'"],
          ["T = POINTER TO POINTER TO RECORD END",
          ["T = POINTER TO POINTER TO RECORD END",