<commit_before>#!/bin/env perl

use strict;

use Test::More tests => 11;

use_ok('RPM');
like(RPM::expand_macro('%{?_rpmversion}%{?!_rpmversion:ver}'), '/^[^%]/', "can expand %_rpmversion macro");
RPM::add_macro('_test_macro I_am_set');
is(RPM::expand_macro('%_test_macro'), 'I_am_set', 'setting a marco works');
<commit_msg>- add test for delete_macro<commit_after>#!/bin/env perl

use strict;

use Test::More tests => 12;

use_ok('RPM');
like(RPM::expand_macro('%{?_rpmversion}%{?!_rpmversion:ver}'), '/^[^%]/', "can expand %_rpmversion macro");
RPM::add_macro('_test_macro I_am_set');
is(RPM::expand_macro('%_test_macro'), 'I_am_set', 'setting a macro works');
RPM::delete_macro('_test_macro');
is(RPM::expand_macro('%_test_macro'), '%_test_macro', 'deleting a macro works');

{'fraction_non_alphanumeric': 0.2220795892169448, 'fraction_numerical': 0.005134788189987163, 'mean_word_length': 9.4, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7271156', 'n_tokens_mistral': 337, 'n_tokens_neox': 303, 'n_words': 55}