Browse Source

Removed old testing framework

Chris Konstad 4 years ago
parent
commit
09cbca4cba

+ 0 - 1
test/legacy/empty.json

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

+ 0 - 7
test/legacy/test.json

@ -1,7 +0,0 @@
1
{
2
  "girlfriend": "kasey",
3
  "parents": {
4
    "mom": "andrea",
5
    "dad": "rolf"
6
  }
7
}

+ 0 - 7
test/legacy/test2.json

@ -1,7 +0,0 @@
1
{
2
  "girlfriend": "Kasey",
3
  "parents": {
4
    "mom": "Andrea",
5
    "dad": "Rolf"
6
  }
7
}

+ 0 - 13
test/legacy/test2.mr

@ -1,13 +0,0 @@
1
{{
2
{
3
  "mappings": {
4
    "roommate": "kuecks"
5
  },
6
  "imports": [
7
    "test.json"
8
  ]
9
}
10
}}
11

													
12
My girlfriend is {{girlfriend}}.  My roommate is {{roommate}}.  My parents are
13
{{parents.dad}} and {{parents.mom}}.

+ 0 - 7
test/legacy/test21.json

@ -1,7 +0,0 @@
1
{
2
  "mappings": {
3
    "parents": {
4
      "dad": "Rolf"
5
    }
6
  }
7
}

+ 0 - 8
test/legacy/test22.json

@ -1,8 +0,0 @@
1
{
2
  "mappings": {
3
    "girlfriend": "Kasey"
4
  },
5
  "imports": [
6
    "test23.json"
7
  ]
8
}

+ 0 - 7
test/legacy/test23.json

@ -1,7 +0,0 @@
1
{
2
  "mappings": {
3
    "parents": {
4
      "mom": "Andrea"
5
    }
6
  }
7
}

+ 0 - 13
test/legacy/test3.mr

@ -1,13 +0,0 @@
1
{{
2
{
3
  "imports": [
4
    "test21.json", "test22.json"
5
  ],
6
  "mappings": {
7
    "roommate": "kuecks"
8
  }
9
}
10
}}
11

													
12
My girlfriend is {{girlfriend}}.  My roommate is {{roommate}}.  My parents are
13
{{parents.dad}} and {{parents.mom}}.

+ 0 - 14
test/legacy/test4.mr

@ -1,14 +0,0 @@
1
{{
2
{
3
  "mappings": {
4
    "roommate": "kuecks",
5
    "girlfriend": "KASEY"
6
  },
7
  "imports": [
8
    "test/test21.json", "test/test22.json", "test/test23.json"
9
  ]
10
}
11
}}
12

													
13
My girlfriend is {{girlfriend}}.  My roommate is {{roommate}}.  My parents are
14
{{parents.dad}} and {{parents.mom}}.

+ 0 - 8
tests.ml

@ -1,8 +0,0 @@
1
#use "markright.ml"
2

													
3
let test_flatten_replace = ("goodbye hello" = flatten (replace (fun e -> match e with x -> if x = "hello" then "goodbye" else x )[Variable("hello"); Text(" "); Text("hello")] ))
4

													
5
let test_filter_parse = ([Text "Hello \\{{world "; Variable "goodbye"; Text "!"] = filter_empty_text (parse "Hello \\{{world {{ goodbye }}!"))
6

													
7
let test_basic = "My girlfriend is kasey and my parents are rolf and andrea." = (markright "test.json" "My girlfriend is {{girlfriend}} and my parents are {{parents.dad}} and {{parents.mom}}.")
8