We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9669bf8 commit 84d148fCopy full SHA for 84d148f
Maximal_square_Test.js
@@ -0,0 +1,37 @@
1
+const assert = require('assert');
2
+const {Maximalsquare } = require('../LeetcodeProblems/Maximal_square');
3
+
4
+function test1() {
5
+ var matrix = [
6
+ [1, 0, 1, 0, 0],
7
+ [1, 0, 1, 1, 1],
8
+ [1, 1, 1, 1 1],
9
+ [1, 0, 0, 1, 0],
10
+ ]
11
12
+ assert.strictEqual(Maximalsquare(matrix), 4);
13
+}
14
15
+function test2() {
16
17
+ [0, 1],
18
+ [1,0]
19
20
21
+ assert.strictEqual(Maximalsquare(matrix), 1);
22
23
24
+function test3(){
25
26
+ [0]
27
28
+ assert.strictEqual(Maximalsquare(matrix), 0);
29
30
31
+function test() {
32
+ test1();
33
+ test2();
34
+ test3();
35
36
37
+module.exports.test = test
0 commit comments