fix: simple knot tests
This commit is contained in:
parent
9ca2200448
commit
cd94a43cc9
7 changed files with 75 additions and 41 deletions
|
|
@ -1,12 +0,0 @@
|
|||
// RUN: %ink-compiler --stdin --compile-only --dump-ast < %s | FileCheck %s
|
||||
|
||||
// CHECK: File "<STDIN>"
|
||||
// CHECK-NEXT: |--KnotDecl <line:11, line:11>
|
||||
// CHECK-NEXT: | `--KnotProto <col:1, col:5>
|
||||
// CHECK-NEXT: | `--Identifier `a` <col:4, col:5>
|
||||
// CHECK-NEXT: `--KnotDecl <line:12, line:12>
|
||||
// CHECK-NEXT: `--KnotProto <col:1, col:5>
|
||||
// CHECK-NEXT: `--Identifier `b` <col:4, col:5>
|
||||
|
||||
== a
|
||||
== b
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
// RUN: %ink-compiler --stdin --compile-only --dump-ast < %s | FileCheck %s
|
||||
|
||||
// CHECK: File "<STDIN>"
|
||||
// CHECK-NEXT: `--KnotDecl <line:12, line:13>
|
||||
// CHECK-NEXT: |--KnotProto <col:1, col:13>
|
||||
// CHECK-NEXT: | `--Identifier `knot` <col:5, col:9>
|
||||
// CHECK-NEXT: `--BlockStmt <line:13, line:13>
|
||||
// CHECK-NEXT: `--ContentStmt <line:13, col:1:14>
|
||||
// CHECK-NEXT: `--Content <col:1, col:14>
|
||||
// CHECK-NEXT: `--StringLiteral `Hello, world!` <col:1, col:14>
|
||||
|
||||
=== knot ===
|
||||
Hello, world!
|
||||
Loading…
Add table
Add a link
Reference in a new issue