Compare commits
2 Commits
fe22e78423
...
5aa0c94810
Author | SHA1 | Date |
---|---|---|
Max Bradbury | 5aa0c94810 | |
Max Bradbury | ad3eb102be |
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue