Skip to content

Commit

Permalink
Update invalid tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mradbourne committed May 29, 2024
1 parent 8544c2a commit 1a2747d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions test/tests/functions/date.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"exp": "{:date}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-operand"
}
]
},
Expand All @@ -20,7 +20,7 @@
"exp": "{|horse|}",
"expErrors": [
{
"type": "operand-mismatch"
"type": "bad-operand"
}
]
},
Expand Down
6 changes: 3 additions & 3 deletions test/tests/functions/datetime.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"exp": "{:datetime}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-operand"
}
]
},
Expand All @@ -26,7 +26,7 @@
],
"expErrors": [
{
"type": "bad-input"
"type": "bad-operand"
}
]
},
Expand All @@ -35,7 +35,7 @@
"exp": "{|horse|}",
"expErrors": [
{
"type": "operand-mismatch"
"type": "bad-operand"
}
]
},
Expand Down
22 changes: 11 additions & 11 deletions test/tests/functions/number.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"exp": "hello {|foo|}",
"expErrors": [
{
"type": "operand-mismatch"
"type": "bad-operand"
}
]
},
Expand All @@ -31,7 +31,7 @@
"exp": "invalid number literal {|.1|}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-operand"
}
]
},
Expand All @@ -40,7 +40,7 @@
"exp": "invalid number literal {|1.|}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-operand"
}
]
},
Expand All @@ -49,7 +49,7 @@
"exp": "invalid number literal {|01|}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-operand"
}
]
},
Expand All @@ -58,7 +58,7 @@
"exp": "invalid number literal {|+1|}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-operand"
}
]
},
Expand All @@ -67,7 +67,7 @@
"exp": "invalid number literal {|0x1|}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-operand"
}
]
},
Expand All @@ -76,7 +76,7 @@
"exp": "hello {:number}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-operand"
}
]
},
Expand Down Expand Up @@ -139,7 +139,7 @@
"exp": "bar {$bar}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-option"
}
]
},
Expand All @@ -154,7 +154,7 @@
"exp": "bar {$bar}",
"expErrors": [
{
"type": "bad-input"
"type": "bad-operand"
}
]
},
Expand Down Expand Up @@ -189,7 +189,7 @@
"exp": "bar {$foo}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-option"
}
]
},
Expand All @@ -204,7 +204,7 @@
"exp": "bar {$foo}",
"expErrors": [
{
"type": "bad-input"
"type": "bad-operand"
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions test/tests/functions/time.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"exp": "{:time}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-operand"
}
]
},
Expand All @@ -20,7 +20,7 @@
"exp": "{|horse|}",
"expErrors": [
{
"type": "operand-mismatch"
"type": "bad-operand"
}
]
},
Expand Down

0 comments on commit 1a2747d

Please sign in to comment.