mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-15 23:02:36 +00:00
#959: the test is named for what it checks: non-finite numbers are saved as zero
This commit is contained in:
1 parent
debf300211
commit
4c101fa549
1 file changed
+1
-1
@@ -1020,7 +1020,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn non_finite_numbers_are_refused_at_save() {
|
||||
fn non_finite_numbers_are_saved_as_zero() {
|
||||
let mut d = Document::new("NaN");
|
||||
let p = d.first_page().unwrap();
|
||||
let r = d.create(p, NodeKind::Rectangle, "R", 1.0, 2.0, 3.0, 4.0).unwrap();
|
||||
|
||||
Reference in new issue
Block a user