sb-api: label helpers wiring + gym/stat_value + policy constants (WI-2, issue #2)
This commit is contained in:
parent
5d5a594a7a
commit
f0659421e7
7 changed files with 217 additions and 47 deletions
|
|
@ -59,3 +59,18 @@ pub fn load_enemies() -> Vec<EnemyDef> {
|
|||
pub fn load_zones() -> Vec<ZoneDef> {
|
||||
serde_json::from_str(ZONES_JSON).expect("failed to parse zones.json")
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn enemies_json_parses() {
|
||||
assert!(!load_enemies().is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn zones_json_parses() {
|
||||
assert!(!load_zones().is_empty());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue