From dec4b2180fca03d5893abc7a96383293dfd299b3 Mon Sep 17 00:00:00 2001 From: sreekumar menon Date: Mon, 19 Oct 2020 11:29:23 -0700 Subject: [PATCH] Scalar addition issue on Element-wise operations (#40013) * Scalar addition issue on Element-wise operations * remove chinese from PR Co-authored-by: Sreekumar Menon --- .../rosetta-code/element-wise-operations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/element-wise-operations.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/element-wise-operations.md index 85732dbbfd..7d6a51de7e 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/element-wise-operations.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/element-wise-operations.md @@ -33,7 +33,7 @@ tests: testString: assert(typeof operation === 'function'); - text: operation("m_add",[[1,2],[3,4]],[[1,2],[3,4]]) should return [[2,4],[6,8]]. testString: assert.deepEqual(operation('m_add', [[1, 2], [3, 4]], [[1, 2], [3, 4]]), [[2, 4], [6, 8]]); - - text: operation("s_add",[[1,2],[3,4]],[[1,2],[3,4]]) should return [[3,4],[5,6]]. + - text: operation("s_add",[[1,2],[3,4]],2) should return [[3,4],[5,6]]. testString: assert.deepEqual(operation('s_add', [[1, 2], [3, 4]], 2), [[3, 4], [5, 6]]); - text: operation("m_sub",[[1,2],[3,4]],[[1,2],[3,4]]) should return [[0,0],[0,0]]. testString: assert.deepEqual(operation('m_sub', [[1, 2], [3, 4]], [[1, 2], [3, 4]]), [[0, 0], [0, 0]]);