diff --git a/index.js b/index.js index 592f0705..bf9f4d3a 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ function is(x) { 1101, // Binary 13 "XIII", // Roman numeral 13 "0xD", // Hex 13 - + "https://scontent.cdninstagram.com/hphotos-xtf1/t51.2885-15/s320x320/e35/12237511_444845689040315_1101385461_n.jpg", // Just because we can "https://www.youtube.com/watch?v=pte3Jg-2Ax4", // Thirteen by Big Star "rem hadley", // And because he's 13 @@ -23,7 +23,7 @@ function is(x) { "Dr. Remy Beauregard Hadley", // Why not 13's real name?! // Imaginary 13's - "13+0i", + "13+0i", "13 + 13i", "13i", @@ -38,7 +38,7 @@ function is(x) { "trinaest", // Croatian "tretten", // Danish / Norwegian "kolmteist", // Estonian - "שלוש עשרה", // Hebrew + "שלוש עשרה", // Hebrew "labintatlo", // Filipino "kolmetoista", // Finnish "treize", // French @@ -73,13 +73,9 @@ function is(x) { "تیرہ", // Urdu "tri ar ddeg", // Welsh "דרייַצן", // Yiddish, + "דרייצן", // Yiddish (without diacritics), "kumi na tatu", // Swahili - - //Imaginary 13's - "13+0i", - "13 + 13i", - "13i", - + // Thirteen pronunciation "θərˈtiːn" ] @@ -109,6 +105,13 @@ function is(x) { } } }, + square: { + of: { + thirteen: function() { + return x === 169; + } + } + }, within: function(y) { return { of: { diff --git a/test.js b/test.js index d89d3e48..bebfe8ef 100644 --- a/test.js +++ b/test.js @@ -1,5 +1,5 @@ const tap = require('tap'); -const isThirteen = require('./'); +const is = require('./'); tap.equal(is(13).thirteen(), true); @@ -53,7 +53,7 @@ tap.equal(is("tiga belas").thirteen(), true); // Malay tap.equal(is("арван").thirteen(), true); // Mongolian tap.equal(is("trzynaście").thirteen(), true); // Polish tap.equal(is("treze").thirteen(), true); // Portoguese -tap.equal(is("ਤੀਹ").thirteen(), true); // Punjabi +tap.equal(is("ਤੀਹ").thirteen(), true); // Punjabi tap.equal(is("treisprezece").thirteen(), true); // Romanian tap.equal(is("тринадцать").thirteen(), true); // Russia tap.equal(is("trinásť").thirteen(), true); // Slovak @@ -66,4 +66,5 @@ tap.equal(is("тринадцять").thirteen(), true); // Ukrainian tap.equal(is("تیرہ").thirteen(), true); // Urdu tap.equal(is("tri ar ddeg").thirteen(), true); // Welsh tap.equal(is("דרייַצן").thirteen(), true); // Yiddish +tap.equal(is("דרייצן").thirteen(), true); // Yiddish (without diacritics), tap.equal(is("kumi na tatu").thirteen(), true); // Swahili