Sha256: 041383b1c14636970ae0d3e2c7cb4dcc5920cf831cb485092f7723056e9266d0

Contents?: true

Size: 632 Bytes

Versions: 11

Compression:

Stored size: 632 Bytes

Contents

# ruby ./lib/test/mini_test/TestUtils.rb

require "minitest/autorun" 
require "./lib/authing_ruby.rb"
require "./lib/test/helper.rb" 
require 'dotenv'
Dotenv.load('.env.test') 


class TestUtils < Minitest::Test

	# 测试生成随机字符串
	def test_randomString
		random = AuthingRuby::Utils.generateRandomString(43)
		assert(random.length == 43)
	end

	def test_randomNumberString
		random = AuthingRuby::Utils.randomNumberString(10)
		assert(random.length == 10)
	end

	def test_hash_each
		hash = {
			a:1,
			b:2,
		}
		hash.each do |key, value|
			puts "key: #{key}"
			puts "value: #{value}"
			puts "---"
		end
	end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
authing_ruby-1.1.6 lib/authing_ruby/test/mini_test/TestUtils.rb
authing_ruby-1.1.5 lib/authing_ruby/test/mini_test/TestUtils.rb
authing_ruby-1.1.4 lib/authing_ruby/test/mini_test/TestUtils.rb
authing_ruby-1.1.3 lib/authing_ruby/test/mini_test/TestUtils.rb
authing_ruby-1.1.2 lib/authing_ruby/test/mini_test/TestUtils.rb
authing_ruby-1.1.1 lib/authing_ruby/test/mini_test/TestUtils.rb
authing_ruby-1.1.0 lib/authing_ruby/test/mini_test/TestUtils.rb
authing_ruby-1.0.9 lib/authing_ruby/test/mini_test/TestUtils.rb
authing_ruby-1.0.8 lib/authing_ruby/test/mini_test/TestUtils.rb
authing_ruby-1.0.7 lib/authing_ruby/test/mini_test/TestUtils.rb
authing_ruby-1.0.6 lib/authing_ruby/test/mini_test/TestUtils.rb