Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testConstructor_overflowValue (0.69 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java

            NdrSmall ndrSmall = new NdrSmall(-1); // -1 & 0xFF = 255
            assertEquals(255, ndrSmall.value, "Negative value should be masked to its unsigned byte equivalent.");
        }
    
        @Test
        void testConstructor_overflowValue() {
            // Test with a value exceeding byte range, expecting it to be masked
            NdrSmall ndrSmall = new NdrSmall(256); // 256 & 0xFF = 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top