Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1028839 // test_ai_ruleOfThree_2 (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (6573L/43K).

1  
svoid test_ai_ruleOfThree_2() { 
2  
  test_ai_ruleOfThree_2(lambda2 ai_ruleOfThree_solver_2);
3  
}
4  
5  
svoid test_ai_ruleOfThree_2(IF2<S, S, S> f) {
6  
  S db = [[
7  
    If a HTTP request comes in, play a sound
8  
    If a bell rings, open door
9  
  ]];
10  
  testFunctionValues_twoArgs(f,
11  
    pair(db, "a HTTP request comes in"), "play a sound",
12  
    pair(db, "a bell rings"), "open door",
13  
    pair(db, "something else"), null);
14  
}

Author comment

Began life as a copy of #1028826

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028839
Snippet name: test_ai_ruleOfThree_2 (OK)
Eternal ID of this version: #1028839/4
Text MD5: b2a60df94425ab31d029fbafeaa86a90
Transpilation MD5: 48e2737b353635c52eec18e4fbdb1293
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-09 15:46:00
Source code size: 419 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 225 / 293
Version history: 3 change(s)
Referenced in: [show references]