Fix
This commit is contained in:
parent
b501c5e4a6
commit
3e93021793
@ -6,6 +6,7 @@
|
|||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <stdexcept>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -117,7 +117,7 @@ int main() {
|
|||||||
string input = "int a = 10 @;";
|
string input = "int a = 10 @;";
|
||||||
|
|
||||||
_TEST_ASSERT(
|
_TEST_ASSERT(
|
||||||
_TEST_IS_EXCEPTION(tokenize({ input }), TokenError),
|
_TEST_IS_EXCEPTION(tokenize({ input }), SyntaxError),
|
||||||
"Token invalide",
|
"Token invalide",
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user