Libraryless. Click here for Pure Java version (15946L/109K).
static PatternMaker1 test_PatternMaker1() { PatternMaker1 pm = test_PatternMaker1_1(); pm.counterexamplesText += "\n" + "Ist das Licht im Flur an?"; pm.makeStrategy = () -> PatternMaker1_Strategy2(pm); pm.think(); assertNempty(print("Solution", pm.simplestFullSolution)); mmo2_simplePatternCheck(pm.examplesText, pm.counterexamplesText, pm.simplestFullSolution); ret pm; } // This one is solved static PatternMaker1 test_PatternMaker1_1() { S examples = [[ Mache das licht im wohnzimmer nicht an Mache das Licht an Mache das Licht im Wohnzimmer aus Mache An Aus Mache das licht an Mache das Licht im flur aus Flur aus Mache an Mache das Licht im flur an Licht an Mache das licht aus licht im flur an Mache das licht im flur an und das licht im wohnzimmer aus Wohnzimmer an ]]; S counterexamples = [[ Licht nicht Im Wohnzimmer Licht im Flur Im Flur Wohnzimmer Flur ]]; PatternMaker1 pm = new(examples, counterexamples); pm.think(); assertEqualsIC(tok_sortCommaListCI("Mache, an, aus"), tok_sortCommaListCI(pm.simplestFullSolution)); mmo2_simplePatternCheck(examples, counterexamples, pm.simplestFullSolution); ret pm; }
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: | #1028123 |
Snippet name: | test_PatternMaker1 |
Eternal ID of this version: | #1028123/13 |
Text MD5: | 9f72d1f8b6c4e03cebc405a99b682431 |
Transpilation MD5: | 5cf81b830688d1bb68f72930184de415 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-20 14:19:48 |
Source code size: | 1295 bytes / 47 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 201 / 353 |
Version history: | 12 change(s) |
Referenced in: | [show references] |