Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleoliveiro committed Jun 13, 2016
1 parent 39cc194 commit c59a663
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions scss/scarab.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
$SCARAB: ();
@import '_';

@debug $SCARAB;
8 changes: 4 additions & 4 deletions test/functions/test-bl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@
title: 'positive integer',
args: ( 17 ),
asserts: (
equal: 17 * $BASELINE,
equal: 17 * $baseline,
gt: 0
)
),
(
title: 'positive float',
args: ( 3.142 ),
asserts: (
equal: 3.142 * $BASELINE,
equal: 3.142 * $baseline,
gt: 0
)
),
(
title: 'negative integer',
args: ( -4 ),
asserts: (
equal: -4 * $BASELINE,
equal: -4 * $baseline,
lt: 0
)
),
(
title: 'negative float',
args: ( -102.59 ),
asserts: (
equal: -102.59 * $BASELINE,
equal: -102.59 * $baseline,
lt: 0
)
)
Expand Down
16 changes: 8 additions & 8 deletions test/test.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// Import Scarab
@import '../scss/scarab';

@include define( baseline, rem(1+random(63)) );
@include set( baseline, rem(1+random(63)) );

$int_pos: random(1000);
$int_neg: random(1000) * -1;
$flt_pos: random() * random(1000);
$flt_neg: random() * random(1000) * -1;

$BASELINE: map-get( $SCARAB, BASELINE );
$BREAKPOINTS: map-get( $SCARAB, BREAKPOINTS );
$DURATIONS: map-get( $SCARAB, DURATIONS );
$EASINGS: map-get( $SCARAB, EASINGS );
$PALETTES: map-get( $SCARAB, PALETTES );
$TYPE-SCALE: map-get( $SCARAB, TYPE-SCALE );
$TYPEFACES: map-get( $SCARAB, TYPEFACES );
$baseline: map-get( $SCARAB, baseline );
$breakpoints: map-get( $SCARAB, breakpoints );
$durations: map-get( $SCARAB, durations );
$easings: map-get( $SCARAB, easings );
$palettes: map-get( $SCARAB, palettes );
$type-scale: map-get( $SCARAB, type-scale );
$typefaces: map-get( $SCARAB, typefaces );

// Import test utilities
@import 'lib/assert';
Expand Down

0 comments on commit c59a663

Please sign in to comment.