true true => a & b expect (a) expect (b) --- theory (a human weighs between 80 and 400 pounds) { $x is a human & $x weighs $y pounds => $y >= 80 & $y <= 400 } john is a human john weighs x pounds expect (x >= 80) expect (x <= 400) --- $x says (i weigh $y pounds) => $x weighs $y pounds (user 123) says (i weigh 50 pounds) expect ((user 123) weighs 50 pounds) --- import math proc { if (10 >= 5): ok1 if (10 >= 20): ok2 } expect ok1 don't expect ok2 --- import math 6 >= 5 don't expect contradiction --- import math 5 >= 6 expect contradiction --- import bool proc { if false: nothing else if true: yes } expect yes don't expect nothing --- import bool proc { if true: nothing else if true: yes } expect nothing don't expect yes --- import bool proc { if false: nothing else if false: yes } don't expect nothing don't expect yes --- import math proc { if (6 > 5): ok1 if (5 > 5): ok2 } expect ok1 don't expect ok2 --- import math proc { if (4 < 5): ok1 if (5 < 5): ok2 } expect ok1 don't expect ok2 --- import math theory (weight change) { $x weighs $y & last time $x weighed $z => proc { if ($y < $z): say (You lost weight) else if ($y > $z): say (You gained weight) else: say (You are stagnant) } } x weighs 45 last time x weighed 50 expect (say (You lost weight)) don't expect (say (You gained weight)) don't expect (say (You are stagnant))
Travelled to 8 computer(s): bhatertpkbcr, kncoksjjbkvx, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1025734 |
Snippet name: | Musings (philosophy bot test cases) |
Eternal ID of this version: | #1025734/13 |
Text MD5: | 474b9b9ab42174032e2dca94ced1ac9d |
Author: | stefan |
Category: | javax |
Type: | Document |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-16 23:17:02 |
Source code size: | 1677 bytes / 149 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 209 / 457 |
Version history: | 12 change(s) |
Referenced in: | #1025736 - Philosophy bot main test (musings, FactStore) #1025756 - Musings 2 (philosophy bot test cases) |