Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KLayout/klayout
/ norm_hash
Function
norm_hash
testdata/ruby/dbPCells.rb:267–275 ·
view source on GitHub ↗
(hash)
Source
from the content-addressed store, hash-verified
265
end
266
267
def norm_hash(hash)
268
269
str = []
270
hash.keys.sort.each do |k|
271
str << k.inspect +
"=>"
+ hash[k].inspect
272
end
273
"{"
+ str.join(
", "
) +
"}"
274
275
end
276
277
278
class DBPCellAPI_TestClass < TestBase
Callers
2
test_1
Method · 0.85
test_1a
Method · 0.85
Calls
5
each
Method · 0.80
sort
Method · 0.45
keys
Method · 0.45
inspect
Method · 0.45
join
Method · 0.45
Tested by
2
test_1
Method · 0.68
test_1a
Method · 0.68