Libraryless. Click here for Pure Java version (11292L/65K).
1 | svoid test_HashedImage2B() { |
2 | var img1 = randomImage(10); |
3 | var himg1 = new HashedImage2B(img1); |
4 | var himg2 = new HashedImage2B(img1); |
5 | assertEquals(himg1.hashCode(), himg2.hashCode()); |
6 | assertEquals(himg1.hash(), himg2.hash()); |
7 | assertEquals(himg1, himg2); |
8 | |
9 | var img3 = randomImage(10); |
10 | var himg3 = new HashedImage2B(img3); |
11 | assertNotEquals(himg1.hashCode(), himg3.hashCode()); |
12 | assertNotEquals(himg1.hash(), himg3.hash()); |
13 | assertNotEquals(himg1, himg3); |
14 | } |
Began life as a copy of #1034844
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035845 |
Snippet name: | test_HashedImage2B |
Eternal ID of this version: | #1035845/1 |
Text MD5: | a33324a8ff608c027c878bb2527c2ff3 |
Transpilation MD5: | c47b44b245f7a120887906ba246d88b5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-02 20:58:38 |
Source code size: | 484 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 139 / 177 |
Referenced in: | [show references] |