// Autogenerated from KST: please remove this line if doing any edits by hand!

extern crate kaitai_struct;
extern crate rust;

use kaitai_struct::KaitaiStruct;
use rust::RepeatUntilS4;

#[test]
fn test_repeat_until_s4() {
    if let Ok(r) = RepeatUntilS4::from_file("src/repeat_until_s4.bin") {
        assert_eq!(r.entries, [66, 4919, -251658241, -1]);
        assert_eq!(r.afterall, "foobar");
    }
}
