Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.10.0
Fetching contributors…

Cannot retrieve contributors at this time

108 lines (84 sloc) 1.895 kb
# This file describes a set of test cases for parsing a Font Variation
# Description into a hash.
tests:
# font-style
- description: "n4"
fvd: "n4"
output:
font-style: normal
font-weight: "400"
- description: "i4"
fvd: "i4"
output:
font-style: italic
font-weight: "400"
- description: "o4"
fvd: "o4"
output:
font-style: oblique
font-weight: "400"
# font-weight
- description: "n1"
fvd: "n1"
output:
font-style: normal
font-weight: "100"
- description: "n2"
fvd: "n2"
output:
font-style: normal
font-weight: "200"
- description: "n3"
fvd: "n3"
output:
font-style: normal
font-weight: "300"
- description: "n4"
fvd: "n4"
output:
font-style: normal
font-weight: "400"
- description: "n5"
fvd: "n5"
output:
font-style: normal
font-weight: "500"
- description: "n6"
fvd: "n6"
output:
font-style: normal
font-weight: "600"
- description: "n7"
fvd: "n7"
output:
font-style: normal
font-weight: "700"
- description: "n8"
fvd: "n8"
output:
font-style: normal
font-weight: "800"
- description: "n9"
fvd: "n9"
output:
font-style: normal
font-weight: "900"
# invalid description
- description: "'' is null because it's empty"
fvd: ""
output: ~
- description: "'x0' is null because the style is invalid"
fvd: "x0"
output: ~
- description: "'n0' is null because the weight is invalid"
fvd: "n0"
output: ~
- description: "'n' is null because there is only one input"
fvd: "n"
output: ~
- description: "'1' is null because there is only one input"
fvd: "1"
output: ~
- description: "'n1x' is null because there are more than two inputs"
fvd: "n1x"
output: ~
Jump to Line
Something went wrong with that request. Please try again.