Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
test(core): added some integration tests
Elijah Potter01c1b6fb0891
diff --git a/harper-core/tests/run_tests.rs b/harper-core/tests/run_tests.rsindex 4b63b2249..126748a64 100644--- a/harper-core/tests/run_tests.rs+++ b/harper-core/tests/run_tests.rs@@ -50,6 +50,8 @@ create_test!(issue_358.md, 0);create_test!(issue_195.md, 0);create_test!(pr_504.md, 1);create_test!(pr_452.md, 2);+create_test!(hex_basic_clean.md, 0);+create_test!(hex_basic_dirty.md, 1);// Make sure it doesn't paniccreate_test!(lukas_homework.md, 3);diff --git a/harper-core/tests/test_sources/hex_basic_clean.md b/harper-core/tests/test_sources/hex_basic_clean.mdnew file mode 100644index 000000000..28089e5d3--- /dev/null+++ b/harper-core/tests/test_sources/hex_basic_clean.md@@ -0,0 +1,4 @@+If p is an `int*`, and `p = 0x1000`, what is the value of `p+3`?++_0x100C_+diff --git a/harper-core/tests/test_sources/hex_basic_dirty.md b/harper-core/tests/test_sources/hex_basic_dirty.mdnew file mode 100644index 000000000..dabfa7937--- /dev/null+++ b/harper-core/tests/test_sources/hex_basic_dirty.md@@ -0,0 +1,5 @@+If p is an `int*`, and `p = 0x1000`, what is the value of `p+3`?++_0x100C_++asdkjd