blob: ac7f756254dbfb81d80167a14169d37a469b39b6 [file] [log] [blame]
sbarati@apple.com2f75cb72019-07-11 00:59:10 +00001<!DOCTYPE html>
2<html>
3<meta charset=utf-8>
4<meta name="timeout" content="long">
5<title>Copying.</title>
mmaxfield@apple.com87064d82019-07-17 19:37:56 +00006<script src="js/test-harness.js"></script>
7<script src="../js/webgpu-functions.js"></script>
8<script src="../../resources/testharness.js"></script>
9<script src="../../resources/testharnessreport.js"></script>
sbarati@apple.com2f75cb72019-07-11 00:59:10 +000010<script>
11const whlslTests = {};
12
13whlslTests.doubleNot = async () =>
14{
15 let program = `
16 bool foo(bool x)
17 {
18 return !!x;
19 }
20 `;
21 assert_equals(await callBoolFunction(program, "foo", [makeBool(true)]), true);
22 assert_equals(await callBoolFunction(program, "foo", [makeBool(false)]), false);
23}
24
25runTests(whlslTests);
26</script>
27</html>