@include test('patch(..)') {
  $tests: (
    '1.2.3': 3,
    '1.2.30': 30,
    '1.2.300': 300,
    '1.2.3-alpha': 3,
    '1.2.30-alpha': 30,
    '1.2.300-alpha': 300,
    '1.2.3-alpha.0': 3,
    '1.2.30-alpha.0': 30,
    '1.2.300-alpha.0': 300,
    '1.2.1': 1,
    ' 1.2.1 ': 1,
    ' 1.2.2-4 ': 2,
    ' 1.2.3-pre ': 3,
    'v1.2.5': 5,
    ' v1.2.8 ': 8,
    '\t1.2.13': 13,
    '=1.2.21': 21,
    'v=1.2.34': 34,

  );

  @each $test, $expect in $tests {
    @include assert-equal(patch($test), $expect, 'Returns the patch component of a version.');
  }
}
