@identity-js/string-identity 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/index.js +105 -0
- package/package.json +52 -1
- package/test/index.js +206 -0
package/README.md
CHANGED
|
@@ -31,8 +31,11 @@ const result1 = stringIdentity("hello")
|
|
|
31
31
|
// Returns: "💯"
|
|
32
32
|
const result2 = stringIdentity("💯")
|
|
33
33
|
|
|
34
|
-
// Returns: "E
|
|
34
|
+
// Returns: "E"
|
|
35
35
|
const result3 = stringIdentity("E")
|
|
36
|
+
|
|
37
|
+
// Returns: "»"
|
|
38
|
+
const result4 = stringIdentity("»")
|
|
36
39
|
```
|
|
37
40
|
|
|
38
41
|
## Testing
|
package/index.js
CHANGED
|
@@ -385,6 +385,60 @@ var emojis = {
|
|
|
385
385
|
"emoji-world-map": require("emoji-world-map"), // "🗺"
|
|
386
386
|
"emoji-zero": require("emoji-zero") // "0️⃣"
|
|
387
387
|
}
|
|
388
|
+
|
|
389
|
+
// MISC CHARACTERS
|
|
390
|
+
var character_acute_accent = require("@characters/acute-accent") // ´
|
|
391
|
+
var character_ampersand = require("@characters/ampersand") // &
|
|
392
|
+
var character_apostrophe = require("@characters/apostrophe") // '
|
|
393
|
+
var character_asterisk = require("@characters/asterisk") // *
|
|
394
|
+
var character_at_sign = require("@characters/at-sign") // @
|
|
395
|
+
var character_backslash = require("@characters/backslash") // \
|
|
396
|
+
var character_broken_bar = require("@characters/broken-bar") // ¦
|
|
397
|
+
var character_cent_sign = require("@characters/cent-sign") // ¢
|
|
398
|
+
var character_colon = require("@characters/colon") // :
|
|
399
|
+
var character_comma = require("@characters/comma") // ,
|
|
400
|
+
var character_copyright_sign = require("@characters/copyright-sign") // ©
|
|
401
|
+
var character_degree_sign = require("@characters/degree-sign") // °
|
|
402
|
+
var character_diaeresis = require("@characters/diaeresis") // ¨
|
|
403
|
+
var character_division_sign = require("@characters/division-sign") // ÷
|
|
404
|
+
var character_dollar_sign = require("@characters/dollar-sign") // $
|
|
405
|
+
var character_exclamation_mark = require("@characters/exclamation-mark") // !
|
|
406
|
+
var character_full_stop = require("@characters/full-stop") // .
|
|
407
|
+
var character_grave_accent = require("@characters/grave-accent") // `
|
|
408
|
+
var character_greater_than_sign = require("@characters/greater-than-sign") // >
|
|
409
|
+
var character_interted_exclamation_mark = require("@characters/interted-exclamation-mark") // ¡
|
|
410
|
+
var character_inverted_question_mark = require("@characters/inverted-question-mark") // ¿
|
|
411
|
+
var character_left_curly_bracket = require("@characters/left-curly-bracket") // {
|
|
412
|
+
var character_left_parenthesis = require("@characters/left-parenthesis") // (
|
|
413
|
+
var character_left_pointing_double_angle_quotation_mark = require("@characters/left-pointing-double-angle-quotation-mark") // «
|
|
414
|
+
var character_left_square_bracket = require("@characters/left-square-bracket") // [
|
|
415
|
+
var character_less_than_sign = require("@characters/less-than-sign") // <
|
|
416
|
+
var character_macron = require("@characters/macron") // ¯
|
|
417
|
+
var character_micro_sign = require("@characters/micro-sign") // μ
|
|
418
|
+
var character_middle_dot = require("@characters/middle-dot") // ·
|
|
419
|
+
var character_minus_sign = require("@characters/minus-sign") // -
|
|
420
|
+
var character_multiplication_sign = require("@characters/multiplication-sign") // ×
|
|
421
|
+
var character_not_sign = require("@characters/not-sign") // ¬
|
|
422
|
+
var character_number_sign = require("@characters/number-sign") // #
|
|
423
|
+
var character_percent_sign = require("@characters/percent-sign") // %
|
|
424
|
+
var character_pilcrow_sign = require("@characters/pilcrow-sign") // ¶
|
|
425
|
+
var character_plus_minus_sign = require("@characters/plus-minus-sign") // ±
|
|
426
|
+
var character_plus_sign = require("@characters/plus-sign") // +
|
|
427
|
+
var character_pound_sign = require("@characters/pound-sign") // £
|
|
428
|
+
var character_question_mark = require("@characters/question-mark") // ?
|
|
429
|
+
var character_quotation_mark = require("@characters/quotation-mark") // "
|
|
430
|
+
var character_registered_sign = require("@characters/registered-sign") // ®
|
|
431
|
+
var character_right_curly_bracket = require("@characters/right-curly-bracket") // }
|
|
432
|
+
var character_right_parenthesis = require("@characters/right-parenthesis") // )
|
|
433
|
+
var character_right_pointing_double_angle_quotation_mark = require("@characters/right-pointing-double-angle-quotation-mark") // »
|
|
434
|
+
var character_right_square_bracket = require("@characters/right-square-bracket") // ]
|
|
435
|
+
var character_section_sign = require("@characters/section-sign") // §
|
|
436
|
+
var character_semicolon = require("@characters/semicolon") // ;
|
|
437
|
+
var character_slash = require("@characters/slash") // /
|
|
438
|
+
var character_space = require("@characters/space") //
|
|
439
|
+
var character_tilde = require("@characters/tilde") // ~
|
|
440
|
+
var character_yen_sign = require("@characters/yen-sign") // ¥
|
|
441
|
+
|
|
388
442
|
function stringIdentity(str) {
|
|
389
443
|
if (!isString(str) && ($String(str) === str)) {
|
|
390
444
|
return immediateError(
|
|
@@ -718,6 +772,57 @@ function stringIdentityCommonStrings(str) {
|
|
|
718
772
|
if (eqstrings(str, emojis["emoji-woman-woman-girl-boy"])) return emojis["emoji-woman-woman-girl-boy"]
|
|
719
773
|
if (eqstrings(str, emojis["emoji-world-map"])) return emojis["emoji-world-map"]
|
|
720
774
|
if (eqstrings(str, emojis["emoji-zero"])) return emojis["emoji-zero"]
|
|
775
|
+
if (eqstrings(str, character_acute_accent)) return character_acute_accent
|
|
776
|
+
if (eqstrings(str, character_ampersand)) return character_ampersand
|
|
777
|
+
if (eqstrings(str, character_apostrophe)) return character_apostrophe
|
|
778
|
+
if (eqstrings(str, character_asterisk)) return character_asterisk
|
|
779
|
+
if (eqstrings(str, character_at_sign)) return character_at_sign
|
|
780
|
+
if (eqstrings(str, character_backslash)) return character_backslash
|
|
781
|
+
if (eqstrings(str, character_broken_bar)) return character_broken_bar
|
|
782
|
+
if (eqstrings(str, character_cent_sign)) return character_cent_sign
|
|
783
|
+
if (eqstrings(str, character_colon)) return character_colon
|
|
784
|
+
if (eqstrings(str, character_comma)) return character_comma
|
|
785
|
+
if (eqstrings(str, character_copyright_sign)) return character_copyright_sign
|
|
786
|
+
if (eqstrings(str, character_degree_sign)) return character_degree_sign
|
|
787
|
+
if (eqstrings(str, character_diaeresis)) return character_diaeresis
|
|
788
|
+
if (eqstrings(str, character_division_sign)) return character_division_sign
|
|
789
|
+
if (eqstrings(str, character_dollar_sign)) return character_dollar_sign
|
|
790
|
+
if (eqstrings(str, character_exclamation_mark)) return character_exclamation_mark
|
|
791
|
+
if (eqstrings(str, character_full_stop)) return character_full_stop
|
|
792
|
+
if (eqstrings(str, character_grave_accent)) return character_grave_accent
|
|
793
|
+
if (eqstrings(str, character_greater_than_sign)) return character_greater_than_sign
|
|
794
|
+
if (eqstrings(str, character_interted_exclamation_mark)) return character_interted_exclamation_mark
|
|
795
|
+
if (eqstrings(str, character_inverted_question_mark)) return character_inverted_question_mark
|
|
796
|
+
if (eqstrings(str, character_left_curly_bracket)) return character_left_curly_bracket
|
|
797
|
+
if (eqstrings(str, character_left_parenthesis)) return character_left_parenthesis
|
|
798
|
+
if (eqstrings(str, character_left_pointing_double_angle_quotation_mark)) return character_left_pointing_double_angle_quotation_mark
|
|
799
|
+
if (eqstrings(str, character_left_square_bracket)) return character_left_square_bracket
|
|
800
|
+
if (eqstrings(str, character_less_than_sign)) return character_less_than_sign
|
|
801
|
+
if (eqstrings(str, character_macron)) return character_macron
|
|
802
|
+
if (eqstrings(str, character_micro_sign)) return character_micro_sign
|
|
803
|
+
if (eqstrings(str, character_middle_dot)) return character_middle_dot
|
|
804
|
+
if (eqstrings(str, character_minus_sign)) return character_minus_sign
|
|
805
|
+
if (eqstrings(str, character_multiplication_sign)) return character_multiplication_sign
|
|
806
|
+
if (eqstrings(str, character_not_sign)) return character_not_sign
|
|
807
|
+
if (eqstrings(str, character_number_sign)) return character_number_sign
|
|
808
|
+
if (eqstrings(str, character_percent_sign)) return character_percent_sign
|
|
809
|
+
if (eqstrings(str, character_pilcrow_sign)) return character_pilcrow_sign
|
|
810
|
+
if (eqstrings(str, character_plus_minus_sign)) return character_plus_minus_sign
|
|
811
|
+
if (eqstrings(str, character_plus_sign)) return character_plus_sign
|
|
812
|
+
if (eqstrings(str, character_pound_sign)) return character_pound_sign
|
|
813
|
+
if (eqstrings(str, character_question_mark)) return character_question_mark
|
|
814
|
+
if (eqstrings(str, character_quotation_mark)) return character_quotation_mark
|
|
815
|
+
if (eqstrings(str, character_registered_sign)) return character_registered_sign
|
|
816
|
+
if (eqstrings(str, character_right_curly_bracket)) return character_right_curly_bracket
|
|
817
|
+
if (eqstrings(str, character_right_parenthesis)) return character_right_parenthesis
|
|
818
|
+
if (eqstrings(str, character_right_pointing_double_angle_quotation_mark)) return character_right_pointing_double_angle_quotation_mark
|
|
819
|
+
if (eqstrings(str, character_right_square_bracket)) return character_right_square_bracket
|
|
820
|
+
if (eqstrings(str, character_section_sign)) return character_section_sign
|
|
821
|
+
if (eqstrings(str, character_semicolon)) return character_semicolon
|
|
822
|
+
if (eqstrings(str, character_slash)) return character_slash
|
|
823
|
+
if (eqstrings(str, character_space)) return character_space
|
|
824
|
+
if (eqstrings(str, character_tilde)) return character_tilde
|
|
825
|
+
if (eqstrings(str, character_yen_sign)) return character_yen_sign
|
|
721
826
|
if (isWDS(str)) return generalConcat(uppercase_w, uppercase_d, uppercase_s)
|
|
722
827
|
immediateError("if you see this error in the console everything's broken and the world is ending. take shelter", ErrorType.BaseError)
|
|
723
828
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@identity-js/string-identity",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Returns the string passed into the function.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,6 +23,57 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/10xEngineersQualityProgramming/identity#readme",
|
|
25
25
|
"dependencies": {
|
|
26
|
+
"@characters/acute-accent": "^2.1.0",
|
|
27
|
+
"@characters/ampersand": "^2.1.0",
|
|
28
|
+
"@characters/apostrophe": "^2.1.0",
|
|
29
|
+
"@characters/asterisk": "^2.1.0",
|
|
30
|
+
"@characters/at-sign": "^2.1.0",
|
|
31
|
+
"@characters/backslash": "^2.1.0",
|
|
32
|
+
"@characters/broken-bar": "^2.1.0",
|
|
33
|
+
"@characters/cent-sign": "^2.1.0",
|
|
34
|
+
"@characters/colon": "^2.1.0",
|
|
35
|
+
"@characters/comma": "^2.1.0",
|
|
36
|
+
"@characters/copyright-sign": "^2.1.0",
|
|
37
|
+
"@characters/degree-sign": "^2.1.0",
|
|
38
|
+
"@characters/diaeresis": "^2.1.0",
|
|
39
|
+
"@characters/division-sign": "^2.1.0",
|
|
40
|
+
"@characters/dollar-sign": "^2.1.0",
|
|
41
|
+
"@characters/exclamation-mark": "^2.1.0",
|
|
42
|
+
"@characters/full-stop": "^2.1.0",
|
|
43
|
+
"@characters/grave-accent": "^2.1.0",
|
|
44
|
+
"@characters/greater-than-sign": "^2.1.0",
|
|
45
|
+
"@characters/interted-exclamation-mark": "^2.1.0",
|
|
46
|
+
"@characters/inverted-question-mark": "^2.1.0",
|
|
47
|
+
"@characters/left-curly-bracket": "^2.1.0",
|
|
48
|
+
"@characters/left-parenthesis": "^2.1.0",
|
|
49
|
+
"@characters/left-pointing-double-angle-quotation-mark": "^2.1.0",
|
|
50
|
+
"@characters/left-square-bracket": "^2.1.0",
|
|
51
|
+
"@characters/less-than-sign": "^2.1.0",
|
|
52
|
+
"@characters/macron": "^2.1.0",
|
|
53
|
+
"@characters/micro-sign": "^2.1.0",
|
|
54
|
+
"@characters/middle-dot": "^2.1.0",
|
|
55
|
+
"@characters/minus-sign": "^2.1.0",
|
|
56
|
+
"@characters/multiplication-sign": "^2.1.0",
|
|
57
|
+
"@characters/not-sign": "^2.1.0",
|
|
58
|
+
"@characters/number-sign": "^2.1.0",
|
|
59
|
+
"@characters/percent-sign": "^2.1.0",
|
|
60
|
+
"@characters/pilcrow-sign": "^2.1.0",
|
|
61
|
+
"@characters/plus-minus-sign": "^2.1.0",
|
|
62
|
+
"@characters/plus-sign": "^2.1.0",
|
|
63
|
+
"@characters/pound-sign": "^2.1.0",
|
|
64
|
+
"@characters/question-mark": "^2.1.0",
|
|
65
|
+
"@characters/quotation-mark": "^2.1.0",
|
|
66
|
+
"@characters/registered-sign": "^2.1.0",
|
|
67
|
+
"@characters/right-curly-bracket": "^2.1.0",
|
|
68
|
+
"@characters/right-parenthesis": "^2.1.0",
|
|
69
|
+
"@characters/right-pointing-double-angle-quotation-mark": "^2.1.0",
|
|
70
|
+
"@characters/right-square-bracket": "^2.1.0",
|
|
71
|
+
"@characters/section-sign": "^2.1.0",
|
|
72
|
+
"@characters/semicolon": "^2.1.0",
|
|
73
|
+
"@characters/slash": "^2.1.0",
|
|
74
|
+
"@characters/space": "^2.1.0",
|
|
75
|
+
"@characters/tilde": "^2.1.0",
|
|
76
|
+
"@characters/yen-sign": "^2.1.0",
|
|
26
77
|
"@lowercase-letters/a": "^2.0.0",
|
|
27
78
|
"@lowercase-letters/b": "^2.0.0",
|
|
28
79
|
"@lowercase-letters/c": "^2.0.0",
|
package/test/index.js
CHANGED
|
@@ -1255,4 +1255,210 @@ describe('stringIdentity', function () {
|
|
|
1255
1255
|
assert.strictEqual(stringIdentity(''), '')
|
|
1256
1256
|
})
|
|
1257
1257
|
})
|
|
1258
|
+
|
|
1259
|
+
describe("Symbols", function () {
|
|
1260
|
+
it("should return \"´\" when given \"´\"", function () {
|
|
1261
|
+
assert.strictEqual(stringIdentity("´"), "´")
|
|
1262
|
+
})
|
|
1263
|
+
|
|
1264
|
+
it("should return \"&\" when given \"&\"", function () {
|
|
1265
|
+
assert.strictEqual(stringIdentity("&"), "&")
|
|
1266
|
+
})
|
|
1267
|
+
|
|
1268
|
+
it("should return \"'\" when given \"'\"", function () {
|
|
1269
|
+
assert.strictEqual(stringIdentity("'"), "'")
|
|
1270
|
+
})
|
|
1271
|
+
|
|
1272
|
+
it("should return \"*\" when given \"*\"", function () {
|
|
1273
|
+
assert.strictEqual(stringIdentity("*"), "*")
|
|
1274
|
+
})
|
|
1275
|
+
|
|
1276
|
+
it("should return \"@\" when given \"@\"", function () {
|
|
1277
|
+
assert.strictEqual(stringIdentity("@"), "@")
|
|
1278
|
+
})
|
|
1279
|
+
|
|
1280
|
+
it("should return \"\\\" when given \"\\\"", function () {
|
|
1281
|
+
assert.strictEqual(stringIdentity("\\"), "\\")
|
|
1282
|
+
})
|
|
1283
|
+
|
|
1284
|
+
it("should return \"¦\" when given \"¦\"", function () {
|
|
1285
|
+
assert.strictEqual(stringIdentity("¦"), "¦")
|
|
1286
|
+
})
|
|
1287
|
+
|
|
1288
|
+
it("should return \"¢\" when given \"¢\"", function () {
|
|
1289
|
+
assert.strictEqual(stringIdentity("¢"), "¢")
|
|
1290
|
+
})
|
|
1291
|
+
|
|
1292
|
+
it("should return \":\" when given \":\"", function () {
|
|
1293
|
+
assert.strictEqual(stringIdentity(":"), ":")
|
|
1294
|
+
})
|
|
1295
|
+
|
|
1296
|
+
it("should return \",\" when given \",\"", function () {
|
|
1297
|
+
assert.strictEqual(stringIdentity(","), ",")
|
|
1298
|
+
})
|
|
1299
|
+
|
|
1300
|
+
it("should return \"©\" when given \"©\"", function () {
|
|
1301
|
+
assert.strictEqual(stringIdentity("©"), "©")
|
|
1302
|
+
})
|
|
1303
|
+
|
|
1304
|
+
it("should return \"°\" when given \"°\"", function () {
|
|
1305
|
+
assert.strictEqual(stringIdentity("°"), "°")
|
|
1306
|
+
})
|
|
1307
|
+
|
|
1308
|
+
it("should return \"¨\" when given \"¨\"", function () {
|
|
1309
|
+
assert.strictEqual(stringIdentity("¨"), "¨")
|
|
1310
|
+
})
|
|
1311
|
+
|
|
1312
|
+
it("should return \"÷\" when given \"÷\"", function () {
|
|
1313
|
+
assert.strictEqual(stringIdentity("÷"), "÷")
|
|
1314
|
+
})
|
|
1315
|
+
|
|
1316
|
+
it("should return \"$\" when given \"$\"", function () {
|
|
1317
|
+
assert.strictEqual(stringIdentity("$"), "$")
|
|
1318
|
+
})
|
|
1319
|
+
|
|
1320
|
+
it("should return \"!\" when given \"!\"", function () {
|
|
1321
|
+
assert.strictEqual(stringIdentity("!"), "!")
|
|
1322
|
+
})
|
|
1323
|
+
|
|
1324
|
+
it("should return \".\" when given \".\"", function () {
|
|
1325
|
+
assert.strictEqual(stringIdentity("."), ".")
|
|
1326
|
+
})
|
|
1327
|
+
|
|
1328
|
+
it("should return \"`\" when given \"`\"", function () {
|
|
1329
|
+
assert.strictEqual(stringIdentity("`"), "`")
|
|
1330
|
+
})
|
|
1331
|
+
|
|
1332
|
+
it("should return \">\" when given \">\"", function () {
|
|
1333
|
+
assert.strictEqual(stringIdentity(">"), ">")
|
|
1334
|
+
})
|
|
1335
|
+
|
|
1336
|
+
it("should return \"¡\" when given \"¡\"", function () {
|
|
1337
|
+
assert.strictEqual(stringIdentity("¡"), "¡")
|
|
1338
|
+
})
|
|
1339
|
+
|
|
1340
|
+
it("should return \"¿\" when given \"¿\"", function () {
|
|
1341
|
+
assert.strictEqual(stringIdentity("¿"), "¿")
|
|
1342
|
+
})
|
|
1343
|
+
|
|
1344
|
+
it("should return \"{\" when given \"{\"", function () {
|
|
1345
|
+
assert.strictEqual(stringIdentity("{"), "{")
|
|
1346
|
+
})
|
|
1347
|
+
|
|
1348
|
+
it("should return \"(\" when given \"(\"", function () {
|
|
1349
|
+
assert.strictEqual(stringIdentity("("), "(")
|
|
1350
|
+
})
|
|
1351
|
+
|
|
1352
|
+
it("should return \"«\" when given \"«\"", function () {
|
|
1353
|
+
assert.strictEqual(stringIdentity("«"), "«")
|
|
1354
|
+
})
|
|
1355
|
+
|
|
1356
|
+
it("should return \"[\" when given \"[\"", function () {
|
|
1357
|
+
assert.strictEqual(stringIdentity("["), "[")
|
|
1358
|
+
})
|
|
1359
|
+
|
|
1360
|
+
it("should return \"<\" when given \"<\"", function () {
|
|
1361
|
+
assert.strictEqual(stringIdentity("<"), "<")
|
|
1362
|
+
})
|
|
1363
|
+
|
|
1364
|
+
it("should return \"¯\" when given \"¯\"", function () {
|
|
1365
|
+
assert.strictEqual(stringIdentity("¯"), "¯")
|
|
1366
|
+
})
|
|
1367
|
+
|
|
1368
|
+
it("should return \"μ\" when given \"μ\"", function () {
|
|
1369
|
+
assert.strictEqual(stringIdentity("μ"), "μ")
|
|
1370
|
+
})
|
|
1371
|
+
|
|
1372
|
+
it("should return \"·\" when given \"·\"", function () {
|
|
1373
|
+
assert.strictEqual(stringIdentity("·"), "·")
|
|
1374
|
+
})
|
|
1375
|
+
|
|
1376
|
+
it("should return \"-\" when given \"-\"", function () {
|
|
1377
|
+
assert.strictEqual(stringIdentity("-"), "-")
|
|
1378
|
+
})
|
|
1379
|
+
|
|
1380
|
+
it("should return \"×\" when given \"×\"", function () {
|
|
1381
|
+
assert.strictEqual(stringIdentity("×"), "×")
|
|
1382
|
+
})
|
|
1383
|
+
|
|
1384
|
+
it("should return \"¬\" when given \"¬\"", function () {
|
|
1385
|
+
assert.strictEqual(stringIdentity("¬"), "¬")
|
|
1386
|
+
})
|
|
1387
|
+
|
|
1388
|
+
it("should return \"#\" when given \"#\"", function () {
|
|
1389
|
+
assert.strictEqual(stringIdentity("#"), "#")
|
|
1390
|
+
})
|
|
1391
|
+
|
|
1392
|
+
it("should return \"%\" when given \"%\"", function () {
|
|
1393
|
+
assert.strictEqual(stringIdentity("%"), "%")
|
|
1394
|
+
})
|
|
1395
|
+
|
|
1396
|
+
it("should return \"¶\" when given \"¶\"", function () {
|
|
1397
|
+
assert.strictEqual(stringIdentity("¶"), "¶")
|
|
1398
|
+
})
|
|
1399
|
+
|
|
1400
|
+
it("should return \"±\" when given \"±\"", function () {
|
|
1401
|
+
assert.strictEqual(stringIdentity("±"), "±")
|
|
1402
|
+
})
|
|
1403
|
+
|
|
1404
|
+
it("should return \"+\" when given \"+\"", function () {
|
|
1405
|
+
assert.strictEqual(stringIdentity("+"), "+")
|
|
1406
|
+
})
|
|
1407
|
+
|
|
1408
|
+
it("should return \"£\" when given \"£\"", function () {
|
|
1409
|
+
assert.strictEqual(stringIdentity("£"), "£")
|
|
1410
|
+
})
|
|
1411
|
+
|
|
1412
|
+
it("should return \"?\" when given \"?\"", function () {
|
|
1413
|
+
assert.strictEqual(stringIdentity("?"), "?")
|
|
1414
|
+
})
|
|
1415
|
+
|
|
1416
|
+
it("should return \"\\\"\" when given \"\\\"\"", function () {
|
|
1417
|
+
assert.strictEqual(stringIdentity("\""), "\"")
|
|
1418
|
+
})
|
|
1419
|
+
|
|
1420
|
+
it("should return \"®\" when given \"®\"", function () {
|
|
1421
|
+
assert.strictEqual(stringIdentity("®"), "®")
|
|
1422
|
+
})
|
|
1423
|
+
|
|
1424
|
+
it("should return \"}\" when given \"}\"", function () {
|
|
1425
|
+
assert.strictEqual(stringIdentity("}"), "}")
|
|
1426
|
+
})
|
|
1427
|
+
|
|
1428
|
+
it("should return \")\" when given \")\"", function () {
|
|
1429
|
+
assert.strictEqual(stringIdentity(")"), ")")
|
|
1430
|
+
})
|
|
1431
|
+
|
|
1432
|
+
it("should return \"»\" when given \"»\"", function () {
|
|
1433
|
+
assert.strictEqual(stringIdentity("»"), "»")
|
|
1434
|
+
})
|
|
1435
|
+
|
|
1436
|
+
it("should return \"]\" when given \"]\"", function () {
|
|
1437
|
+
assert.strictEqual(stringIdentity("]"), "]")
|
|
1438
|
+
})
|
|
1439
|
+
|
|
1440
|
+
it("should return \"§\" when given \"§\"", function () {
|
|
1441
|
+
assert.strictEqual(stringIdentity("§"), "§")
|
|
1442
|
+
})
|
|
1443
|
+
|
|
1444
|
+
it("should return \";\" when given \";\"", function () {
|
|
1445
|
+
assert.strictEqual(stringIdentity(";"), ";")
|
|
1446
|
+
})
|
|
1447
|
+
|
|
1448
|
+
it("should return \"/\" when given \"/\"", function () {
|
|
1449
|
+
assert.strictEqual(stringIdentity("/"), "/")
|
|
1450
|
+
})
|
|
1451
|
+
|
|
1452
|
+
it("should return \" \" when given \" \"", function () {
|
|
1453
|
+
assert.strictEqual(stringIdentity(" "), " ")
|
|
1454
|
+
})
|
|
1455
|
+
|
|
1456
|
+
it("should return \"~\" when given \"~\"", function () {
|
|
1457
|
+
assert.strictEqual(stringIdentity("~"), "~")
|
|
1458
|
+
})
|
|
1459
|
+
|
|
1460
|
+
it("should return \"¥\" when given \"¥\"", function () {
|
|
1461
|
+
assert.strictEqual(stringIdentity("¥"), "¥")
|
|
1462
|
+
})
|
|
1463
|
+
})
|
|
1258
1464
|
})
|