-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(ast/values) properly test implemented align values
- Loading branch information
Showing
9 changed files
with
82 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
pub(crate) use crate::traits::StyleValue; | ||
pub(crate) use hdx_proc_macro::*; | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::super::*; | ||
use crate::test_helpers::*; | ||
|
||
#[test] | ||
fn size_test() { | ||
// assert_size!(AlignContent, 1); | ||
// assert_size!(JustifyContent, 1); | ||
// assert_size!(PlaceContent, 1); | ||
// assert_size!(JustifySelf, 1); | ||
// assert_size!(AlignSelf, 1); | ||
// assert_size!(PlaceSelf, 1); | ||
// assert_size!(JustifyItems, 1); | ||
// assert_size!(AlignItems, 1); | ||
// assert_size!(PlaceItems, 1); | ||
assert_size!(RowGap, 8); | ||
assert_size!(ColumnGap, 8); | ||
assert_size!(Gap, 16); | ||
} | ||
|
||
#[test] | ||
fn test_writes() { | ||
assert_parse!(RowGap, "normal"); | ||
assert_parse!(ColumnGap, "1px"); | ||
assert_parse!(Gap, "normal 1px"); | ||
} | ||
} |
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
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