Libraryless. Click here for Pure Java version (4059L/25K).
1 | svoid test_mmo2_scoredMatch() { |
2 | testFunctionValues_twoArgs_flat mmo2_scoredMatch( |
3 | "hello", "hello", 1.0, |
4 | "hello * 0.5", "hello", 0.5, |
5 | "hello * 0.5", "no", 0.0, |
6 | "hello * 0.2, world * 0.3", "hello", 0.2, |
7 | "hello * 0.2, world * 0.3", "world", 0.3, |
8 | "hello * 0.2, world * 0.3", "hello world", 0.3, // currently using "max" semantics for "+" |
9 | "hello * 0.2 + world * 0.3", "hello", 0.0, |
10 | "hello * 0.2 + world * 0.3", "world", 0.0, |
11 | "hello * 0.2 + world * 0.3", "hello world", 0.06, |
12 | "(hello + world) * 0.3", "hello world", 0.3, |
13 | ); |
14 | } |
Began life as a copy of #1028073
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: | #1028083 |
Snippet name: | test_mmo2_scoredMatch (OK) |
Eternal ID of this version: | #1028083/5 |
Text MD5: | 1716ab47ee8bc9e74f09980cdd8dd009 |
Transpilation MD5: | 2e8b4bab6c88e563a626d21b95b09832 |
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-17 15:54:56 |
Source code size: | 577 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 258 / 342 |
Version history: | 4 change(s) |
Referenced in: | [show references] |