File: VarList.cpp

package info (click to toggle)
hyprutils 0.11.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 560 kB
  • sloc: cpp: 5,332; sh: 10; makefile: 3
file content (11 lines) | stat: -rw-r--r-- 247 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#include <hyprutils/string/VarList.hpp>

#include <gtest/gtest.h>

using namespace Hyprutils::String;

TEST(String, varlist) {
    CVarList list("hello    world!", 0, 's', true);
    EXPECT_EQ(list[0], "hello");
    EXPECT_EQ(list[1], "world!");
}