Commit d84bd483 authored by Austin Yu's avatar Austin Yu
Browse files

add more testing codes

parent 55c5df1d
syntax = "proto3";
package com.example.grpc.chat;
message ChatMessage {
string from = 1;
string message = 2;
}
message ChatMessageFromServer {
Chat Message message = 2;
}
service ChatService {
rpc chat(stream ChatMessage) return (stream Chat MessageFromServer);
}
# tutorials
This is all testing codes for various programming languages.
#!/bin/bash
read A
read B
read C
if [ $A -eq $B -a $B -eq $C ]
then
echo EQUILATERAL
elif [ $A -eq $B -a $A -eq $C ] ||
[ $B -eq $C -a $B -eq $A ] ||
[ $C -eq $A -a $C -eq $B ]
then
echo ISOSCELES
else
echo SCALENE
fi
ZZ
read q
if [ "$q" = "y" ] || [ "$q" = "Y" ]
then
echo "YES"
elif [ "$q" = "n" ] || [ "$q" = "N" ]
then
echo "NO"
fi
read x
read y
if [ $x -lt $y ]
then
echo X is less than Y
elif [ $x -eq $y ]
then
echo X is equal to Y
else
echo X is greater than Y
fi
# This script opens 4 terminal windows.
read name
echo Welcome $name
#no space around the "=" sign
i="1"
while [ $i -lt 10 ]
do
echo $i
i=$[$i+2]
done
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class BlogConfig(AppConfig):
name = 'blog'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='blog-home'),
path('about/', views.about, name='blog-about'),
]
from django.shortcuts import render
from django.http import HttpResponse
def home(request):
return HttpResponse('<h1>Blog Home</h1>')
def about(request):
return HttpResponse('Blog About');
# Create your views here.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment