tests: add some runtime error in nitin.input
[nit.git] / examples / rosettacode / entropy_narcissist.nit
1 #!/usr/bin/env nit
2 #
3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
5
6 # Task: Entropy/Narcissist
7 # SEE: <http://rosettacode.org/wiki/Entropy/Narcissist>
8 module entropy_narcissist
9
10 import counter
11
12 # Should be run in the right directory
13 print "entropy_narcissist.nit".to_path.read_all.chars.to_counter.entropy