WMLScript Test

[WMLScript Test tool]

Test set 1: float comparing promlems (Motorola)

Test 1A: 0.1 == 0
Answer 1A: `` (must be `false`)

Test 1B: 0.1 != 0.0
Answer 1B: `` (must be `true`)

Test 1C: 5.1 == 5.6
Answer 1C: `` (must be `false`)

Test 1D: 112 != 531
Answer 1D: `` (must be `true`)

Test set 2: problem with values from WML page (Siemens/Openwave)

Test 2A: value from WML page: 360; var m = value; var n = 360
Answer 2A: ``, ``, `` (must be `360`, `360`, `360`)

Test 2B: Typeof: Float.pow(0.2, value); Float.pow(0.2, m); Float.pow(0.2, n);
Answer 2B: ``, ``, `` (must be `1`, `1`, `1`)

RUN
-*-*-*-*-*-*-*-*-
2022 © Compys S&N Systems

RUN