Compare commits

...

2 Commits

Author SHA1 Message Date
Max Bradbury 5aa0c94810 update this accepted failure 2020-10-16 16:31:49 +01:00
Max Bradbury ad3eb102be fix this breaking change 2020-10-16 16:31:35 +01:00
2 changed files with 4 additions and 3 deletions

View File

@ -74,8 +74,8 @@ impl FromStr for Exit {
let position = position.unwrap(); let position = position.unwrap();
let effect = if let Some(transition_line) = parts.next() { let effect = if parts.next().is_some() {
Transition::from(transition_line) Transition::from(parts.next().unwrap())
} else { } else {
Transition::None Transition::None
}; };

View File

@ -4,11 +4,12 @@ mod test {
/// bitsy-parser will parse these games correctly /// bitsy-parser will parse these games correctly
/// but the output does not match the input, due to game data errors. /// but the output does not match the input, due to game data errors.
const ACCEPTED_FAILURES: [&str; 31] = [ const ACCEPTED_FAILURES: [&str; 32] = [
// position out of bounds e.g. "5, -1" // position out of bounds e.g. "5, -1"
"CFE62F11", // "SweetPea Village", "CFE62F11", // "SweetPea Village",
"013B3CDE", // "Sunset Shore", "013B3CDE", // "Sunset Shore",
"65C2B499", // "==GIRLS OWN THE VOID=={br}a faux platformer", "65C2B499", // "==GIRLS OWN THE VOID=={br}a faux platformer",
"74E0F6EF", // this one has no name. the files is huge so the test hangs, but it does parse ok apart from a bad item position.
// extra tiles in room (this was an old editor bug) // extra tiles in room (this was an old editor bug)
"07836D6F", // "I can't run anymore. They won't give up. I need water.", "07836D6F", // "I can't run anymore. They won't give up. I need water.",
"12490381", // "Picnic at Castle Island", "12490381", // "Picnic at Castle Island",