From 2ecd230b63fedd95c1ecf4a383fbd5b50e89c7c2 Mon Sep 17 00:00:00 2001 From: Ujjwal Sharma Date: Sat, 29 Sep 2018 07:19:53 +0530 Subject: [PATCH] Update test to include object and symbol --- test/intl402/NumberFormat/constructor-locales-tooptions.js | 7 ++++++- test/intl402/NumberFormat/constructor-options-toobject.js | 0 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 test/intl402/NumberFormat/constructor-options-toobject.js diff --git a/test/intl402/NumberFormat/constructor-locales-tooptions.js b/test/intl402/NumberFormat/constructor-locales-tooptions.js index 1f088b52de..7799fcf66d 100644 --- a/test/intl402/NumberFormat/constructor-locales-tooptions.js +++ b/test/intl402/NumberFormat/constructor-locales-tooptions.js @@ -12,7 +12,12 @@ info: | 4.a. Let O be ? ToObject(locales). ---*/ -const toObjectResults = [[true, new Boolean(true)], [42, new Number(42)]]; +const toObjectResults = [ + [true, new Boolean(true)], + [42, new Number(42)], + [{}, {}], + [Symbol(), Object(Symbol())] +]; // Test if ToObject is used to convert primitives to Objects. toObjectResults.forEach(pair => { diff --git a/test/intl402/NumberFormat/constructor-options-toobject.js b/test/intl402/NumberFormat/constructor-options-toobject.js new file mode 100644 index 0000000000..e69de29bb2