<commit_before><commit_msg>very simple typeof testing<commit_after>package introspect

import (
	"testing"

	"github.com/wellington/sass/ast"
	"github.com/wellington/sass/token"
)

func TestTypeOf(t *testing.T) {
	call := &ast.CallExpr{}
	lit, err := typeOf(call, &ast.BasicLit{
		Kind:  token.INT,
		Value: "1",
	})
	if err != nil {
		t.Fatal(err)
	}
	if e := "number"; lit.Value != e {
		t.Errorf("got: %s wanted: %s", lit.Value, e)
	}

	lit, err = typeOf(call, &ast.BasicLit{
		Kind:  token.STRING,
		Value: "a",
	})
	if err != nil {
		t.Fatal(err)
	}
	if e := "string"; lit.Value != e {
		t.Errorf("got: %s wanted: %s", lit.Value, e)
	}
}
{'fraction_non_alphanumeric': 0.19470404984423675, 'fraction_numerical': 0.001557632398753894, 'mean_word_length': 3.4965034965034967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3724981', 'n_tokens_mistral': 290, 'n_tokens_neox': 273, 'n_words': 60}