· @endecasillabo
2 followers · 8 posts · Server mastodon.bida.im
Christoph Jüngling · @juengling
134 followers · 2329 posts · Server mastodontech.de

Ebenso kannte ich zwar "", aber "" war neu für mich, und auf den ersten Blick sogar eleganter, da die Tests im jeweiligen definiert werden, damit sofort erkennbar sind und auch noch als Dokumentation herhalten können.

#Unittest #doctest #docstring #python3

Last updated 2 years ago

N1k9 · @n1k9
4 followers · 32 posts · Server livellosegreto.it
Paolo Melchiorre · @paulox
635 followers · 546 posts · Server fosstodon.org

🌠 I created a repository with my solutions for the puzzles

🧩 All solutions use only the  with no need for external packages

🔬  are included in function and can be run using the  module

⚠️ I don't think I will be able to enter the every day and definitely not in the morning

🐍 I participate in to my Python rather than to compete in the

👇
github.com/pauloxnet/adventofc

#github #python #adventofcode #pythonstandardlibrary #tests #docstrings #doctest #solutions #aoc #improve #knowledge #leaderboard

Last updated 2 years ago

Thomas Arildsen · @arildsen
58 followers · 200 posts · Server fosstodon.org

@HeidiSeibold I also write tests for my software. They are not primarily for usability but mostly for assuring quality and correctness, but I also think they can serve to demonstrate how the software works or should be expected to work.
In , one testing framework, , is convenient for incorporating tests as examples into the documentation. This way they can both serve as usage examples in the before-mentioned docstrings and as automated tests.

#python #doctest

Last updated 2 years ago

alexanderadam · @alexanderadam
301 followers · 3369 posts · Server ruby.social

Did you know, that @skippi_io@twitter.com once ported (like known from , @elixirlang@twitter.com, , , @rustlang@twitter.com, @elmlang@twitter.com ) to @CrystalLanguage@twitter.com?

github.com/skippi/docspec#usag

PS: Didn't try it yet but I'm pretty sure that it won't work in current Crystal versions without a patch.

#doctest #python #cpp #haskell

Last updated 3 years ago

alexanderadam · @alexanderadam
301 followers · 3369 posts · Server ruby.social

Did you know, that @skippi_io@twitter.com once ported @elixirlang@twitter.com's to @CrystalLanguage@twitter.com?

github.com/skippi/docspec#usag

PS: I didn't try it yet but I'm pretty sure that it won't work in current Crystal versions.

RT @fusillicode@twitter.com

skippi/docspec: A crystal library for automatically testing documentation examples. - github.com/skippi/docspec

🐦🔗: twitter.com/fusillicode/status

#doctest

Last updated 3 years ago