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

14
LINES

< > BotCompany Repo | #1028083 // test_mmo2_scoredMatch (OK)

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

Libraryless. Click here for Pure Java version (4059L/25K).

svoid test_mmo2_scoredMatch() {
  testFunctionValues_twoArgs_flat mmo2_scoredMatch(
    "hello", "hello", 1.0,
    "hello * 0.5", "hello", 0.5,
    "hello * 0.5", "no", 0.0,
    "hello * 0.2, world * 0.3", "hello", 0.2,
    "hello * 0.2, world * 0.3", "world", 0.3,
    "hello * 0.2, world * 0.3", "hello world", 0.3, // currently using "max" semantics for "+"
    "hello * 0.2 + world * 0.3", "hello", 0.0,
    "hello * 0.2 + world * 0.3", "world", 0.0,
    "hello * 0.2 + world * 0.3", "hello world", 0.06,
    "(hello + world) * 0.3", "hello world", 0.3,
  );
}

Author comment

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: 183 / 242
Version history: 4 change(s)
Referenced in: [show references]