Skip to content

Commit

Permalink
test cs != command
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed May 5, 2024
1 parent 656b56d commit c928432
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions test/testcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,39 @@ void test_cs_equals()
test_cs_command(inputs, vals);
}

void test_cs_nequals()
{
std::printf("testing CS != command\n");

std::vector<std::string> inputs = {
"!= 1",
"!= 0",
"!= 1 1",
"!= 1 1 1",
"!= 1 0",
"!=f 1",
"!=f 0",
"!=f 1 1",
"!=f 1 1 1",
"!=f 1 0",

};
std::vector<int> vals = {
1,
0,
0,
0,
1,
1,
0,
0,
0,
1
};

test_cs_command(inputs, vals);
}

//run tests
void testcs()
{
Expand All @@ -252,6 +285,7 @@ void testcs()
test_cs_mul();
test_cs_minus();
test_cs_equals();
test_cs_nequals();
//command.h
testescapestring();
testescapeid();
Expand Down

0 comments on commit c928432

Please sign in to comment.