-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
executable file
·31 lines (31 loc) · 976 Bytes
/
example.html
File metadata and controls
executable file
·31 lines (31 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
<script src="test.js"></script>
<script>
test.suite('Demo Suite', {
'true is true': [true, true],
'false is true': [false, true],
'one is equal to one': [1, 1],
'one is equal to two': [1, 2],
'1 + 1 = 2': [1 + 1, 2],
'2 * 2 = 6': [2 * 2, 6],
'one is greater than two?': [1 > 1],
'two is greater than one?': [2 > 1],
'function returns true': [(function() {
return false;
})()],
'function returns 5': [(function() {
return 10 / 2;
})(), 5],
'custom result from function': (function() {
var question = 2 * 2;
var expected = 4;
return [question, expected];
})()
});
</script>
</head>
</html>