<commit_before>var tape = require('tape')
var parse = require('parse-svg-path')
var s = require('serialize-svg-path')
var scale = require('../')

var straight = parse('M10 10 L15 15')
var curves = {
  relative: parse('M10 10 c15 15, 20 10, 15 15'),
  absolute: parse('M10 10 C15 15, 20 10, 15 15')
}

tape('scale by 0.5', function(test) {
  var input = scale(straight, 0.5)
  var expected = parse('M5 5 L7.5 7.5')
  test.deepEqual(input, expected)
  test.end()
})

tape('scale by 0.5 and 1.5', function(test) {
  var input = scale(straight, 0.5, 1.5)
  var expected = parse('M5 15 L7.5 22.5')
  test.deepEqual(input, expected)
  test.end()<commit_msg>Fixed mistake in test.<commit_after>var tape = require('tape')
var parse = require('parse-svg-path')
var scale = require('../')

var straight = parse('M10 10 L15 15')
var curves = {
  relative: parse('M10 10 c15 15, 20 10, 15 15'),
  absolute: parse('M10 10 C15 15, 20 10, 15 15')
}

tape('scale by 0.5', function(test) {
  var input = scale(straight, 0.5)
  var expected = parse('M5 5 L7.5 7.5')
  test.deepEqual(input, expected)
  test.end()
})

tape('scale by 0.5 and 1.5', function(test) {
  var input = scale(straight, 0.5, 1.5)
  var expected = parse('M5 15 L7.5 22.5')
  test.deepEqual(input, expected)
  test.end()
{'fraction_non_alphanumeric': 0.17124901806755696, 'fraction_numerical': 0.10369206598586017, 'mean_word_length': 3.8075471698113206, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4350704', 'n_tokens_mistral': 578, 'n_tokens_neox': 485, 'n_words': 149}