// File: miguelmartin75[P]StringUtils/tests/lest.hpp
// Function: int lest::run<6ul>(lest::test const (&) [6ul], std::ostream&)
int run( test const (&specification)[N], std::ostream & os = std::cout )
{
    int failures = 0;

    for ( auto & testing : specification )
    {
		os << "testing: " << testing.name << '\n';
        try
        {
            testing.behaviour();
        }
        catch( message const & e )
        {
            ++failures;
            report( os, e, testing.name );
        }
    }

    if ( failures > 0 )
    {
        os << failures << " out of " << N << " " << pluralise(N, "test") << " failed." << std::endl;
    }

    return failures;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
addq $0x180, %rax            # imm = 0x180
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x8fc7
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x247b(%rip), %rsi      # 0xb354
callq 0x31d0
movq %rax, %rdi
movq -0x38(%rbp), %rsi
callq 0x31b0
movq %rax, %rdi
movl $0xa, %esi
callq 0x3240
movq -0x38(%rbp), %rdi
addq $0x20, %rdi
callq 0xa3c0
jmp 0x8f06
jmp 0x8f85
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x9125
movq -0x40(%rbp), %rdi
callq 0x30a0
movq %rax, -0x50(%rbp)
movl -0x14(%rbp), %eax
incl %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x38(%rbp), %rsi
leaq -0x70(%rbp), %rdi
callq 0x30b0
jmp 0x8f5e
movq -0xc0(%rbp), %rsi
movq -0xc8(%rbp), %rdi
leaq -0x70(%rbp), %rdx
callq 0xa400
jmp 0x8f77
leaq -0x70(%rbp), %rdi
callq 0x3398
callq 0x32e0
jmp 0x8f87
movq -0x28(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x28(%rbp)
jmp 0x8eb8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x8fbb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x3398
callq 0x32e0
jmp 0x8fc2
jmp 0x9125
cmpl $0x0, -0x14(%rbp)
jle 0x9119
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x3320
movq %rax, %rdi
leaq 0x2377(%rip), %rsi      # 0xb35e
callq 0x31d0
movq %rax, %rdi
movl $0x6, %esi
callq 0x3040
movq %rax, %rdi
leaq 0x2359(%rip), %rsi      # 0xb35c
callq 0x31d0
movq %rax, -0xd8(%rbp)
leaq -0xb1(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x3340
movq -0xd0(%rbp), %rdx
leaq 0x21a7(%rip), %rsi      # 0xb1d7
leaq -0xb0(%rbp), %rdi
callq 0x3280
jmp 0x903e
leaq -0x90(%rbp), %rdi
movl $0x6, %esi
leaq -0xb0(%rbp), %rdx
callq 0xa5a0
jmp 0x9058
movq -0xd8(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x31b0
movq %rax, -0xe0(%rbp)
jmp 0x9074
movq -0xe0(%rbp), %rdi
leaq 0x22e5(%rip), %rsi      # 0xb367
callq 0x31d0
movq %rax, -0xe8(%rbp)
jmp 0x9090
movq -0xe8(%rbp), %rdi
movq 0x5f12(%rip), %rsi      # 0xefb0
callq 0x3200
jmp 0x90a5
leaq -0x90(%rbp), %rdi
callq 0x3398
leaq -0xb0(%rbp), %rdi
callq 0x3398
leaq -0xb1(%rbp), %rdi
callq 0x3210
jmp 0x9119
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x910b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x90ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x3398
leaq -0xb0(%rbp), %rdi
callq 0x3398
leaq -0xb1(%rbp), %rdi
callq 0x3210
jmp 0x9125
movl -0x14(%rbp), %eax
addq $0xf0, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x3330
movq %rax, %rdi
callq 0x91a0
nopw %cs:(%rax,%rax)