// Scale Tests
// ===========


// Imports
@import '../../node_modules/sass-true/sass/true';
@import '../../sass/scale';


// Config
$ratios: ('new': 'octave');

$test-sizes: (
  'root': 20px,
  'text': 'root' ('convert-units': 'rem'),
  'rhythm': 'text' ('fifth': 1),

  'h1': 'text' ('linear': 4),
  'h2': 'text' ('linear': 3),
  'h3': 'text' ('linear': 2),

  'big': 'text' ('fifth': 5),
  'small': 'text' ('octave': -1),
  'viewport': 10vw,
  'percent': 20%,
  'medium-page': 30em ('convert-units': 'browser-ems' 40px),

  'add-number': 3em ('add': 4),
  'plus-number': 30px ('plus': 4in),
  'minus-number': 3em ('minus': 1),
  'subtract-number': 30px ('subtract': 0.25in),
  'times-number': 3em ('times': 1),
  'multiply-number': 30px ('multiply': 1.25),
  'divide-number': 3em ('divide': 2),

  'test-value': 2,

  'add-name': 'root' ('add': 'test-value'),
  'plus-name': 'root' ('plus': 'test-value'),
  'minus-name': 'root' ('minus': 'test-value'),
  'subtract-name': 'root' ('subtract': 'test-value'),
  'times-name': 'root' ('times': 'test-value'),
  'multiply-name': 'root' ('multiply': 'test-value'),
  'divide-name': 'root' ('divide': 'test-value'),

  'round': 10rem / 3 ('round': null),
  'calc-simple': calc(1em + 2vw),
  'calc': 'calc(%s + %s / %s)' ('root' ('times': 3), 'test-value' ('convert-units': 'vw'), 3),
  'calc-ref': 'calc',
);

$sizes: map-merge($sizes, $test-sizes);


// Tests
@import 'utility';
@import 'pow';
@import 'math';
@import 'units';
@import 'size';


// Report
@include report;
