Sha256: 932fb998b876d1626cd57367786ca436c9173e5749b51fd0b5301013d2308e46

Contents?: true

Size: 437 Bytes

Versions: 11

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true
require "active_record"
require "active_record/connection_adapters/postgresql_adapter"
require "active_model"
require "active_support/all"
require "pg"


require_relative "../benchmarking_support"
require_relative "../../lib/panko/panko_serializer"

def assert(type_name, from, to)
  raise "#{type_name} - #{from.class} is not equals to #{to.class}" unless from.to_json == to.to_json
end

Time.zone = "UTC"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
panko_serializer-0.2.2 benchmarks/type_casts/support.rb
panko_serializer-0.2.1 benchmarks/type_casts/support.rb
panko_serializer-0.2.0 benchmarks/type_casts/support.rb
panko_serializer-0.1.10 benchmarks/type_casts/support.rb
panko_serializer-0.1.9 benchmarks/type_casts/support.rb
panko_serializer-0.1.8 benchmarks/type_casts/support.rb
panko_serializer-0.1.7 benchmarks/type_casts/support.rb
panko_serializer-0.1.6 benchmarks/type_casts/support.rb
panko_serializer-0.1.5 benchmarks/type_casts/support.rb
panko_serializer-0.1.4 benchmarks/type_casts/support.rb
panko_serializer-0.1.3 benchmarks/type_casts/support.rb