Back to project page qiniu-android.
The source code is released under:
MIT License
If you think the Android project qiniu-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.qiniu.android; /*w ww. j av a 2 s .c o m*/ import android.test.AndroidTestCase; import com.qiniu.android.utils.Crc32; import junit.framework.Assert; public class CrcTest extends AndroidTestCase { public void testCrc() { byte[] data = "Hello, World!".getBytes(); long result = Crc32.bytes(data); Assert.assertEquals(3964322768L, result); } }