All Questions
Tagged with tdd or unit-testing 
        
            
                1,045 questions
            
            
            
                4
            
            votes
        
        
            
                1
            
            answer
        
        
            
                166
            
            views
        
        
            
            
        Checking for string isomorphism in Java
                    Intro
Two \$n\$-strings \$s = \langle s_1 \ldots s_n \rangle \$ and \$z = \langle z_z \ldots z_n \rangle\$ are considered isomorphic if and only if there exists a bijection \$f\$ such that for all \$...
                
            
       
        
            
                2
            
            votes
        
        
            
                0
            
            answers
        
        
            
                59
            
            views
        
        
            
        Funny time with DNA: a \$k\$-mer index data structure in Java, Take II
                    (See the previous and initial iteration.)
Intro
This time, I decided to pack the genomic data such that 4 nucleotide bases are encoded into a single byte. In other words, ...
                
            
       
        
            
                4
            
            votes
        
        
            
                1
            
            answer
        
        
            
                76
            
            views
        
        
            
            
        Catch2 Sections as Macros
                    I like from the C++ unit test framework Catch2 its sections -- much more than the xUnit test fixtures. Therefore I wrote me some macros which mimic the Catch2 sections.
This is the first macro heavy ...
                
            
       
        
            
                4
            
            votes
        
        
            
                3
            
            answers
        
        
            
                198
            
            views
        
        
            
            
            
        Function to calculate energy where all parameters must be positive
                    I have a function which requires all parameters to be positive:
...
                
            
       
        
            
                5
            
            votes
        
        
            
                1
            
            answer
        
        
            
                386
            
            views
        
        
            
            
            
        Trying Out DDD : How to enforce data integrity and immutability
                    I've been transitioning from type-safe programming languages like Dart and Java to Python, and I'm trying to enforce Domain-Driven Design (DDD) principles in a language that naturally leans towards ...
                
            
       
        
            
                4
            
            votes
        
        
            
                1
            
            answer
        
        
            
                166
            
            views
        
        
            
            
            
        Creating Dedicated Database for database test cases (Tests that I need to check the data are written or read sucessfully) in phpunit
                    I am making a base test class that bootstraps database Test cases
...
                
            
       
        
            
                2
            
            votes
        
        
            
                2
            
            answers
        
        
            
                169
            
            views
        
        
            
            
        C++20 Performance Test Code Generator
                    My previous question about a generic dictionary class for C++ raised some valid concerns. I have made some modifications based on the previous review, but it needs extensive testing and further ...
                
            
       
        
            
                6
            
            votes
        
        
            
                1
            
            answer
        
        
            
                448
            
            views
        
        
            
            
            
        FORTRAN90 test suite for Project Euler
                    The intent of this test file is to go through each of my Project Euler solutions and see if they:
return the correct answer, and
do so in under 60 seconds (unless expected otherwise).
I am using ...
                
            
       
        
            
                3
            
            votes
        
        
            
                1
            
            answer
        
        
            
                152
            
            views
        
        
            
        Testing framework with a single assertion macro
                    I usually use the Catch2 testing framework in my C++ projects. Unlike other frameworks, it has only one core assertion macro for all comparisons. Instead of writing ...
                
            
       
        
            
                3
            
            votes
        
        
            
                1
            
            answer
        
        
            
                66
            
            views
        
        
            
        Swift: Mocking a REST API-request
                    I have read the last two days through several tutorials about how to mock a HTTP-request against a REST API.
Finally I made a prototype for applying, what I have understood from the tutorials.
Here's ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                123
            
            views
        
        
            
            
            
        Project for reading and printing IPs
                    It's a small project which consists of Ip class and functions for reading and printing IPs, unit tests for this code, and a driver app. The driver app is just ...
                
            
       
        
            
                3
            
            votes
        
        
            
                0
            
            answers
        
        
            
                395
            
            views
        
        
            
        Fluent VBA: Two (Almost Three) Years Later
                    Part 1 - A fluent unit testing framework in VBA: A fluent unit testing framework in VBA
Part 2 - Fluent VBA: One Year Later: Fluent VBA: One Year Later
Two (almost three) years have now passed since I ...
                
            
       
        
            
                2
            
            votes
        
        
            
                0
            
            answers
        
        
            
                62
            
            views
        
        
            
            
        Testing PHP CodeIgniter 3 controller with PHPUnit
                    I want to unit test my PHP website, which uses the outdated framework CodeIgniter 3. CodeIgniter 3 uses the MVC pattern, and each page on the website corresponds to a public method in a controller.
I ...
                
            
       
        
            
                3
            
            votes
        
        
            
                1
            
            answer
        
        
            
                134
            
            views
        
        
            
            
            
        Build a dictionary from a string by the extraction of data from all the pairs <TAG|VAL> contained inside the string and clean string from TAGs
                    I have written code to manage a string and retrieve from it a dictionary which must contain pairs key-value dependent from the string.
To be more clear I'll show ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                112
            
            views
        
        
            
            
            
        Generic Min() for Integer Types (including Boolean)
                    This is a follow-up to Generic Max() for Integer Types (including Boolean) and An Attempt at Creating Generic Min()/Max() for Fundamental Types.
What's new:
MIN(), ...
                
            
       
         
         
         
         
         
         
         
        