Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion HelloWorld.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/python3
print("Hello,world!")
# Prints "Hello, World!" to the console
print("Hello, World!")
4 changes: 2 additions & 2 deletions Helloworld.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <bits/stdc++.h>
#include <iostream>
int main (){
std:: cout << "Hello,World!" << std:: endl;
std::cout << "Hello, World!" << std::endl;
return 0;
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Hello-World-
My first repository in Github
# Hello World
My first repository on GitHub. A collection of Hello World programs in various languages.
6 changes: 6 additions & 0 deletions tests/test_hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import subprocess
import sys

def test_python_output():
result = subprocess.run([sys.executable, "HelloWorld.py"], capture_output=True, text=True, check=True)
assert result.stdout.strip() == "Hello, World!"