Skip to content

Commit

Permalink
tweak yaml format
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarver committed May 18, 2010
1 parent 120c47a commit 538b11d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
42 changes: 21 additions & 21 deletions compact.yml
Expand Up @@ -9,104 +9,104 @@ tests:
# font-style

- description: font-style: normal becomes n
font: |
fontface: |
font-style: normal;
fvd: n4

- description: font-style: italic becomes i
font: |
fontface: |
font-style: italic;
fvd: i4

- description: font-style: oblique becomes o
font: |
fontface: |
font-style: oblique;
fvd: o4

- description: unknown font-style becomes n
font: |
fontface: |
font-style: other;
fvd: n4

# font-weight

- description: font-weight: normal becomes 4
font: |
fontface: |
font-weight: normal;
fvd: n4

- description: font-weight: bold becomes 7
font: |
fontface: |
font-weight: bold;
fvd: n7

- description: font-weight: 100 becomes 1
font: |
fontface: |
font-weight: 100;
fvd: n1

- description: font-weight: 200 becomes 2
font: |
fontface: |
font-weight: 200;
fvd: n2

- description: font-weight: 300 becomes 3
font: |
fontface: |
font-weight: 300;
fvd: n3

- description: font-weight: 400 becomes 4
font: |
fontface: |
font-weight: 400;
fvd: n4

- description: font-weight: 500 becomes 5
font: |
fontface: |
font-weight: 500;
fvd: n5

- description: font-weight: 600 becomes 6
font: |
fontface: |
font-weight: 600;
fvd: n6

- description: font-weight: 700 becomes 7
font: |
fontface: |
font-weight: 700;
fvd: n7

- description: font-weight: 800 becomes 8
font: |
fontface: |
font-weight: 800;
fvd: n8

- description: font-weight: 900 becomes 9
font: |
fontface: |
font-weight: 900;
fvd: n9

- description: font-weight: 1000 becomes 4
font: |
fontface: |
font-weight: 1000;
fvd: n4

- description: font-weight: 150 becomes 4
font: |
fontface: |
font-weight: 150;
fvd: n4

# combinations

- description: When all properties are defined
font: |
fontface: |
font-style: italic;
font-weight: bold;
fvd: i7

# string parsing

- description: When the font-face description has extraneous spaces
font: |
fontface: |
font-style: italic ;
Expand All @@ -115,12 +115,12 @@ tests:
fvd: i4

- description: When the font-face description lacks whitespace
font: |
fontface: |
font-style:italic;font-weight:bold;
fvd: i6

- description: When the font-face description contains unhandled properties
font: |
fontface: |
src: url(/font.otf)
font-style:italic;
font-stretch:condensed
Expand Down
36 changes: 18 additions & 18 deletions expand.yml
Expand Up @@ -7,76 +7,76 @@ tests:

- description: "n4"
fvd: "n4"
font: "font-style:normal;font-weight:normal;"
fontface: "font-style:normal;font-weight:normal;"

- description: "i4"
fvd: "i4"
font: "font-style:italic;font-weight:normal;"
fontface: "font-style:italic;font-weight:normal;"

- description: "o4"
fvd: "o4"
font: "font-style:oblique;font-weight:normal;"
fontface: "font-style:oblique;font-weight:normal;"

# font-weight

- description: "n1"
fvd: "n1"
font: "font-style:normal;font-weight:100;"
fontface: "font-style:normal;font-weight:100;"

- description: "n2"
fvd: "n2"
font: "font-style:normal;font-weight:200;"
fontface: "font-style:normal;font-weight:200;"

- description: "n3"
fvd: "n3"
font: "font-style:normal;font-weight:300;"
fontface: "font-style:normal;font-weight:300;"

- description: "n4"
fvd: "n4"
font: "font-style:normal;font-weight:400;"
fontface: "font-style:normal;font-weight:400;"

- description: "n5"
fvd: "n5"
font: "font-style:normal;font-weight:500;"
fontface: "font-style:normal;font-weight:500;"

- description: "n6"
fvd: "n6"
font: "font-style:normal;font-weight:600;"
fontface: "font-style:normal;font-weight:600;"

- description: "n7"
fvd: "n7"
font: "font-style:normal;font-weight:700;"
fontface: "font-style:normal;font-weight:700;"

- description: "n8"
fvd: "n8"
font: "font-style:normal;font-weight:800;"
fontface: "font-style:normal;font-weight:800;"

- description: "n9"
fvd: "n9"
font: "font-style:normal;font-weight:900;"
fontface: "font-style:normal;font-weight:900;"

# invalid description

- description: "'' is null because it's empty"
fvd: ""
font: ~
fontface: ~

- description: "'x0' is null because the style is invalid"
fvd: "x0"
font: ~
fontface: ~

- description: "'n0' is null because the weight is invalid"
fvd: "n0"
font: ~
fontface: ~

- description: "'n' is null because there is only one input"
fvd: "n"
font: ~
fontface: ~

- description: "'1' is null because there is only one input"
fvd: "1"
font: ~
fontface: ~

- description: "'n1x' is null because there are more than two inputs"
fvd: "n1x"
font: ~
fontface: ~

0 comments on commit 538b11d

Please sign in to comment.