Emanuel Ravera
Emanuel Ravera
Generate a test suite for: ``` // Set data structure let s = new Set() s.add("hello").add("goodbye").add("hello") s.size === 2 s.has("hello") === true for (let key of s.values()) // insertion order...
The semantic declaration order is not respected in Pumascript. The testcase that must pass is the following one: ``` foo(2,3); function foo(a, b) { return a + b; } ```
Generate a new test suite for intrinsic JS methods. Please review each one of the links to generate the suite and the corresponding results. Tests: - http://es6-features.org/#ObjectPropertyAssignment - http://es6-features.org/#ArrayElementFinding -...
Generate a test suite for: ``` // Promises usage function msgAfterTimeout (msg, who, timeout) { return new Promise((resolve, reject) => { setTimeout(() => resolve(`${msg} Hello ${who}!`), timeout) }) } msgAfterTimeout("",...
These features can be important for our project on ECMA6. It could be really useful to develop a short work on the features, usage and how impact on JS. 1)...
Generate a test suite: ``` // Typed Arrays // ES6 class equivalent to the following C structure: // struct Example { unsigned long id; char username[16]; float amountDue } class...
LOW PRIORITY - Generate a test suite for: ``` // Generator and iterator let fibonacci = { *[Symbol.iterator]() { let pre = 0, cur = 1 for (;;) { [...
Generate a test suite for: ``` let fibonacci = { [Symbol.iterator]() { let pre = 0, cur = 1 return { next () { [ pre, cur ] = [...
Generate a test suite for: ``` // Symbol type, unique and inmutable type Symbol("foo") !== Symbol("foo") const foo = Symbol() const bar = Symbol() typeof foo === "symbol" typeof bar...
Generate a test suite for classes support: ``` // Class definition class Shape { constructor (id, x, y) { this.id = id this.move(x, y) } move (x, y) { this.x...