Initial euclide.org release

This commit is contained in:
2023-11-17 06:55:06 +01:00
commit 97379c8e8a
210 changed files with 32403 additions and 0 deletions

19
utils_test.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"testing"
)
func TestAddQuotes(t *testing.T) {
for s, wanted := range map[string]string{
"toto": "\"toto\"",
"\"titi": "\"titi\"",
"\"tutu\"": "\"tutu\"",
"te\"te": "\"te\\\"te\"",
"\"\"ta\"ta": "\"ta\\\"ta\"",
} {
if res := addQuotes(s); res != wanted {
t.Errorf("%s quoted as %s and not %s", s, res, wanted)
}
}
}