| 2 | #include "TestHelper.h" |
| 3 | |
| 4 | std::string MakeErrors(LuaParser &p) { |
| 5 | auto errors = p.GetErrors(); |
| 6 | std::string errorOut; |
| 7 | for (auto &err: errors) { |
| 8 | errorOut.append( |
| 9 | util::format("msg: {}, at {}\n", err.ErrorMessage, |
| 10 | p.GetLuaFile()->GetLine(err.ErrorRange.StartOffset))); |
| 11 | } |
| 12 | return errorOut; |
| 13 | } |
| 14 | |
| 15 | TEST(LuaGrammar, basic) { |
| 16 | std::vector<std::string> paths; |
no test coverage detected