specsuite: a few additional tests for structure

This is still not fully comprehensive, but tests some basic functionality.
This commit is contained in:
Martin Atkins 2018-08-12 18:18:58 -07:00
parent 74466f4d35
commit 12f0f2dbc5
12 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,4 @@
a = "a value"
b = "b value"
c = "c value"
d = "d value"

View File

@ -0,0 +1,11 @@
object {
attr "a" {
type = string
}
attr "b" {
type = string
}
attr "d" {
type = string
}
}

View File

@ -0,0 +1,15 @@
diagnostics {
error {
# An argument named "c" is not expected here.
from {
line = 3
column = 1
byte = 28
}
to {
line = 3
column = 2
byte = 29
}
}
}

View File

@ -0,0 +1 @@
a {}

View File

@ -0,0 +1,4 @@
block {
block_type = "a"
object {}
}

View File

@ -0,0 +1 @@
result_type = object({})

View File

@ -0,0 +1,3 @@
a {
}

View File

@ -0,0 +1,4 @@
block {
block_type = "a"
object {}
}

View File

@ -0,0 +1 @@
result_type = object({})

View File

@ -0,0 +1 @@
a {

View File

@ -0,0 +1,4 @@
block {
block_type = "a"
object {}
}

View File

@ -0,0 +1,14 @@
diagnostics {
error {
from {
line = 2
column = 1
byte = 4
}
to {
line = 2
column = 1
byte = 4
}
}
}