Commit de27edc5 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

read csv BOM...

parent 5a002838
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -19,8 +19,11 @@ std::unique_ptr<CSVInputStream> CSVInputStream::openFile(
    char column_seperator /* = ',' */,
    char row_seperator /* = '\n' */,
    char quote_char /* = '"' */) {
  auto file = fnordmetric::util::FileInputStream::openFile(file_path);
  file->readByteOrderMark();

  auto csv_file = new CSVInputStream(
      fnordmetric::util::FileInputStream::openFile(file_path),
      std::move(file),
      column_seperator,
      row_seperator,
      quote_char);
+1 −4
Original line number Diff line number Diff line
@@ -112,10 +112,7 @@ public:
      printf(" [PASS]\n");
    }

    if (num_tests_passed == cases_.size()) {
      printf("\n[SUCCESS] All tests passed :)\n");
      return 0;
    } else {
    if (num_tests_passed != cases_.size()) {
      for (auto test_case : cases_) {
        const auto& err = errors.find(test_case);