-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from delft-hyperloop/bounds
datatypes can have checks for their values being within some range: added in config
- Loading branch information
Showing
12 changed files
with
241 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This is an example procedure | ||
|
||
Id: | ||
DH08.PROC.SC.x | ||
|
||
People: | ||
Kiko | ||
Kiril | ||
|
||
Equipment: | ||
Andreas | ||
|
||
Steps: | ||
1. I refuse to elaborate. | ||
2. :) | ||
3. if in trouble just call me | ||
just text is also fine in a procedure. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use crate::backend::Backend; | ||
use std::path::PathBuf; | ||
use std::str::FromStr; | ||
|
||
#[test] | ||
fn import_procedures() { | ||
let procedures = | ||
Backend::load_procedures(PathBuf::from_str("../../config/procedures/").unwrap()) | ||
.unwrap(); | ||
assert!(procedures.len() > 0); | ||
// panic!("{:?}", procedures); | ||
let example = procedures.iter().find(|x| x[0] == "example").unwrap(); | ||
assert_eq!(example[1], "This is an example procedure"); | ||
assert_eq!(example[2], "DH08.PROC.SC.x"); | ||
assert_eq!(example[3], "Kiko\nKiril"); | ||
assert_eq!(example[4], "Andreas"); | ||
assert_eq!(example[5], "1. I refuse to elaborate.\n2. :)\n3. if in trouble just call me\njust text is also fine in a procedure."); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# imports are single line only to better work with line-based diffs like git | ||
imports_granularity = "Item" | ||
|
||
# imports are sorted to better work with line-based diffs like git | ||
group_imports = "StdExternalCrate" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters