Skip to content

Adds assertions to zero length buffer slice test

Checklist
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

buffer

Description of change

Existing test to show that slicing a 0 length buffer does not throw was missing the actual doesNotThrow assertion.

  1. Adds missing assertion that slicing a 0 length buffer does not throw.
  2. Adds assertion that slicing a 0 length buffer has a length of 0.

Merge request reports

Loading