<commit_before>USING: math accessors slots strings generic.single kernel
tools.test generic words parser eval math.functions ;
IN: slots.tests

TUPLE: r/w-test foo ;

TUPLE: r/o-test { foo read-only } ;

[ r/o-test new 123 >>foo ] [ no-method? ] must-fail-with

TUPLE: decl-test { foo integer } ;

[ decl-test new 1.0 >>foo ] [ bad-slot-value? ] must-fail-with

TUPLE: hello length ;
<commit_msg>slots: fix declaration unit test<commit_after>USING: math accessors slots strings generic.single kernel
tools.test generic words parser eval math.functions arrays ;
IN: slots.tests

TUPLE: r/w-test foo ;

TUPLE: r/o-test { foo read-only } ;

[ r/o-test new 123 >>foo ] [ no-method? ] must-fail-with

TUPLE: decl-test { foo array } ;

[ decl-test new "" >>foo ] [ bad-slot-value? ] must-fail-with

TUPLE: hello length ;

{'fraction_non_alphanumeric': 0.1325153374233129, 'fraction_numerical': 0.0098159509202454, 'mean_word_length': 3.662857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2948568', 'n_tokens_mistral': 301, 'n_tokens_neox': 291, 'n_words': 86}