text: // Autogenerated from KST: please remove this line if doing any edits by hand!
  
  #include <boost/test/unit_test.hpp>
  #include "valid_fail_range_bytes.h"
  #include <iostream>
  #include <fstream>
  #include <vector>
  #include "kaitai/exceptions.h"
  
  BOOST_AUTO_TEST_CASE(test_valid_fail_range_bytes) {
      std::ifstream ifs("src/fixed_struct.bin", std::ifstream::binary);
      kaitai::kstream ks(&ifs);
      valid_fail_range_bytes_t* r = nullptr;
      BOOST_CHECK_THROW(
          r = new valid_fail_range_bytes_t(&ks),
          kaitai::validation_greater_than_error<std::string>
      );
  
      delete r;
  }
  