Libraryless. Click here for Pure Java version (13627L/92K).
concept Bla { int a, b, c, d; } concept Blubb { int a; } svoid test_lowestConceptByField() { new Concepts cc; indexConceptFieldDesc(cc, Bla, "a"); indexConceptFieldDesc(cc, Bla, "c"); Bla x = cnew(cc, Bla, a := 3, b := 3, c := 5, d := 5); Bla y = cnew(cc, Bla, a := 5, b := 5, c := 3, d := 3); assertEqualsVerbose(x, lowestConceptByField(cc, Bla, "a")); assertEqualsVerbose(y, lowestConceptByField(cc, Bla, "c")); assertEqualsVerbose(x, lowestConceptByField(cc, Bla, "b")); assertEqualsVerbose(y, lowestConceptByField(cc, Bla, "d")); assertEqualsVerbose(null, lowestConceptByField(cc, Blubb, "a")); }
Began life as a copy of #1029648
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029657 |
Snippet name: | test_lowestConceptByField (indexed & non-indexed, OK) |
Eternal ID of this version: | #1029657/5 |
Text MD5: | ce57f0fcac4160bb8c75c94c4999f083 |
Transpilation MD5: | 690cb97e5f2638067d31422788481bdf |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-04 22:12:06 |
Source code size: | 645 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 173 / 254 |
Version history: | 4 change(s) |
Referenced in: | [show references] |