←back to thread

Gremllm

(github.com)
120 points andreabergia | 1 comments | | HN request time: 0.2s | source
Show context
andreabergia ◴[] No.44465981[source]

  from gremllm import Gremllm

  # Be sure to tell your gremllm what sort of thing it is
  counter = Gremllm('counter')
  counter.value = 5
  counter.increment()
  print(counter.value)  # 6?
  print(counter.to_roman_numerals()) # VI?
I love this!
replies(1): >>44466900 #
1. SoftTalker ◴[] No.44466900[source]
Awesome, now I don't have to write mocks for testing!