Skip to content

Idempotent headers #19

@davidhunter22

Description

@davidhunter22

Hi, Currenly the test programs include stuff before they include the header of the view they are testing I.E.

#include <catch2/catch.hpp>
#include <vector>
#include <iostream>
#include "tl/chunk.hpp"
#include "tl/to.hpp"
#include "tl/enumerate.hpp"

in chunk.cpp. It would good to include the view you are testing first to make sure the header for that vierw is idempotent I.E

#include "tl/chunk.hpp"  // Make sure this does not depend on things it does not include
#include "tl/to.hpp"
#include "tl/enumerate.hpp"
#include <catch2/catch.hpp>
#include <vector>
#include <iostream>

Let me know if you agree and I will create a pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions