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

10
LINES

< > BotCompany Repo | #1024845 // test_HashedByteArray

JavaX fragment (include)

svoid test_HashedByteArray() {
  HashedByteArray a = new(toUtf8("hello"));
  HashedByteArray b = new(toUtf8("hello"));
  HashedByteArray c = new(toUtf8("bello"));
  
  assertEqualsVerbose(a, b);
  assertEqualsVerbose(a, b);
  assertEqualsVerbose(a.hashCode(), b.hashCode());
  assertFalse(a.equals(c));
}

Author comment

Began life as a copy of #1024844

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: #1024845
Snippet name: test_HashedByteArray
Eternal ID of this version: #1024845/2
Text MD5: 70d6d4665c94a41cb4cc9305ec67970f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-26 21:57:32
Source code size: 313 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 201 / 253
Version history: 1 change(s)
Referenced in: [show references]