Removed runes from the test case

This commit is contained in:
Sasha Koshka 2022-10-04 17:13:08 -04:00
parent b6d3c04acd
commit c7e6c9299a
5 changed files with 12 additions and 12 deletions

View File

@ -25,7 +25,7 @@ func ro cBasicPhrases
[fn [gn 329 983 57] 123] [fn [gn 329 983 57] 123]
func ro dArgumentTypes func ro dArgumentTypes
--- ---
[bird tree butterfly.wing "hello world" grass:Int:8:mut] [bird tree butterfly.wing 'hello world' grass:Int:8:mut]
func ro eMath func ro eMath
> x:Int > x:Int
> y:Int > y:Int

View File

@ -8,11 +8,11 @@ func TestMeta (test *testing.T) {
cwd, _ := os.Getwd() cwd, _ := os.Getwd()
checkTree ("../tests/parser/meta", false, checkTree ("../tests/parser/meta", false,
`:arf `:arf
author "Sasha Koshka" author 'Sasha Koshka'
license "GPLv3" license 'GPLv3'
require "` + filepath.Join(cwd, "./some/local/module") + `" require '` + filepath.Join(cwd, "./some/local/module") + `'
require "/usr/local/include/arf/someLibraryInstalledInStandardLocation" require '/usr/local/include/arf/someLibraryInstalledInStandardLocation'
require "/some/absolute/path/to/someModule" require '/some/absolute/path/to/someModule'
--- ---
`, test) `, test)
} }

View File

@ -34,16 +34,16 @@ func (tree SyntaxTree) ToString (indent int) (output string) {
output += doIndent(indent, ":arf\n") output += doIndent(indent, ":arf\n")
if tree.author != "" { if tree.author != "" {
output += doIndent(indent, "author \"", tree.author, "\"\n") output += doIndent(indent, "author '", tree.author, "'\n")
} }
if tree.license != "" { if tree.license != "" {
output += doIndent(indent, "license \"", tree.license, "\"\n") output += doIndent(indent, "license '", tree.license, "'\n")
} }
for _, name := range sortMapKeysAlphabetically(tree.requires) { for _, name := range sortMapKeysAlphabetically(tree.requires) {
require := tree.requires[name] require := tree.requires[name]
output += doIndent(indent, "require \"", require, "\"\n") output += doIndent(indent, "require '", require, "'\n")
} }
output += doIndent(indent, "---\n") output += doIndent(indent, "---\n")

View File

@ -13,7 +13,7 @@ type ro bBitFields:Obj
ro that:Int & 1 ro that:Int & 1
ro this:Int 298 & 24 ro this:Int 298 & 24
type ro cInit:Obj type ro cInit:Obj
ro that:String "hello world" ro that:String 'hello world'
ro this:Int 23 ro this:Int 23
type ro dInitInherit:aBasic type ro dInitInherit:aBasic
ro that 9384 ro that 9384
@ -24,7 +24,7 @@ type ro eInitAndDefine:aBasic
ro born:Int 4 ro born:Int 4
ro in:Int ro in:Int
ro the:Int:3 (9348 92384 92834) ro the:Int:3 (9348 92384 92834)
ro walls:String "live in the walls, die in the walls." ro walls:String 'live in the walls, die in the walls.'
type ro fBasic:Int type ro fBasic:Int
type ro gBasicInit:Int type ro gBasicInit:Int
6 6

View File

@ -27,7 +27,7 @@ func ro cBasicPhrases
func ro dArgumentTypes func ro dArgumentTypes
--- ---
[bird tree butterfly.wing "hello world" [bird tree butterfly.wing 'hello world'
grass:Int:mut:8] grass:Int:mut:8]
func ro eMath func ro eMath