Skip to content

Commit 6e66a8a

Browse files
committed
Translate missing files
1 parent 82c559c commit 6e66a8a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

1-js/04-object-basics/06-constructor-new/2-calculator-constructor/_js.view/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ describe("calculator", function() {
1111
calculator.read();
1212
});
1313

14-
it("the read method asks for two values using prompt and remembers them in object properties", function() {
14+
it("o método read solicita por 2 valores usando o prompt e os guarda em propriedades do objeto", function() {
1515
assert.equal(calculator.a, 2);
1616
assert.equal(calculator.b, 3);
1717
});
1818

19-
it("when 2 and 3 are entered, the sum is 5", function() {
19+
it("quando 2 e 3 são inseridos, a soma é 5", function() {
2020
assert.equal(calculator.sum(), 5);
2121
});
2222

23-
it("when 2 and 3 are entered, the product is 6", function() {
23+
it("quando 2 e 3 são inseridos, o produto é 6", function() {
2424
assert.equal(calculator.mul(), 6);
2525
});
2626

1-js/04-object-basics/06-constructor-new/3-accumulator/_js.view/solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function Accumulator(startingValue) {
22
this.value = startingValue;
33

44
this.read = function() {
5-
this.value += +prompt('How much to add?', 0);
5+
this.value += +prompt('Quanto adicionar?', 0);
66
};
77

88
}

1-js/04-object-basics/06-constructor-new/3-accumulator/_js.view/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ describe("Accumulator", function() {
88
prompt.restore();
99
});
1010

11-
it("initial value is the argument of the constructor", function() {
11+
it("o valor inicial é o argumento do construtor", function() {
1212
let accumulator = new Accumulator(1);
1313

1414
assert.equal(accumulator.value, 1);
1515
});
1616

17-
it("after reading 0, the value is 1", function() {
17+
it("após ler 0, o valor é 1", function() {
1818
let accumulator = new Accumulator(1);
1919
prompt.returns("0");
2020
accumulator.read();
2121
assert.equal(accumulator.value, 1);
2222
});
2323

24-
it("after reading 1, the value is 2", function() {
24+
it("após ler 1, o valor é 2", function() {
2525
let accumulator = new Accumulator(1);
2626
prompt.returns("1");
2727
accumulator.read();

0 commit comments

Comments
 (0)