Sha256: fdec6580fd2879cef63d4395a3b54137cdef2026c2230afb1302c0f26a3f2944
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
# frozen_string_literal: true require 'pio/monkey_patch/integer' describe MonkeyPatch::Integer::BaseConversions do describe '0#to_hex' do When(:result) { 0.to_hex } Then { result == '0x00' } end describe '1#to_hex' do When(:result) { 1.to_hex } Then { result == '0x01' } end describe '250#to_hex' do When(:result) { 250.to_hex } Then { result == '0xfa' } end describe '4207849484#to_hex' do When(:result) { 4_207_849_484.to_hex } Then { result == '0xfaceb00c' } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.30.2 | spec/pio/monkey_patch/integer_spec.rb |